Skip to content

Commit 0d7164b

Browse files
committed
feat (CI): add unit tests workflow
1 parent 4b42ae9 commit 0d7164b

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: [push, pull_request]
2+
3+
jobs:
4+
5+
php-intl:
6+
runs-on: ubuntu-18.04
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
php-version: ['7.2', '7.3', '7.4', '8.0']
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 1
16+
17+
- run: php${{ matrix.php-version }} -v
18+
- run: php${{ matrix.php-version }} -m
19+
- run: composer -V
20+
- run: composer install
21+
- run: php${{ matrix.php-version }} vendor/bin/phpunit --bootstrap tests/bootstrap.php tests

0 commit comments

Comments
 (0)