| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,26 @@ |
| 1 |
+name: UnitTests |
|
| 2 |
+ |
|
| 3 |
+on: |
|
| 4 |
+ push: |
|
| 5 |
+ branches: [ master ] |
|
| 6 |
+ pull_request: |
|
| 7 |
+ branches: [ master ] |
|
| 8 |
+ |
|
| 9 |
+jobs: |
|
| 10 |
+ build: |
|
| 11 |
+ |
|
| 12 |
+ runs-on: ubuntu-20.04 |
|
| 13 |
+ |
|
| 14 |
+ strategy: |
|
| 15 |
+ matrix: |
|
| 16 |
+ php-version: [7.4, 8.1] |
|
| 17 |
+ |
|
| 18 |
+ steps: |
|
| 19 |
+ - uses: actions/checkout@v2 |
|
| 20 |
+ - uses: php-actions/composer@v4 |
|
| 21 |
+ - name: PHPUnit Tests |
|
| 22 |
+ uses: php-actions/phpunit@v3 |
|
| 23 |
+ with: |
|
| 24 |
+ php_version: ${{ matrix.php-version }}
|
|
| 25 |
+ configuration: tests/phpunit.xml |
|
| 26 |
+ version: 9.5.28 |