Skip to content

Commit 25ee702

Browse files
authored
Fix matrix build (#389)
* add CI environment * fix matrix build * add phpunit options
1 parent dec667f commit 25ee702

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ jobs:
66
build-test:
77
runs-on: ubuntu-latest
88
strategy:
9+
fail-fast: false
910
matrix:
1011
php-versions:
1112
- 5.4
@@ -14,25 +15,29 @@ jobs:
1415
- 7.2
1516
- 7.3
1617
- 7.4
18+
- 8.0
19+
- 8.1
1720
- 8.2
1821
- 8.3
19-
- nightly
22+
- 8.4
23+
2024

2125
steps:
2226
- uses: actions/checkout@v3
2327

2428
- uses: php-actions/composer@v6
2529

2630
- name: PHPUnit Tests
27-
uses: php-actions/phpunit@master
31+
uses: php-actions/phpunit@v4
2832
env:
2933
XDEBUG_MODE: coverage
3034
with:
31-
php_extensions: "xdebug"
35+
php_extensions: xdebug
3236
coverage_html: "coverage/html/"
3337
version: 9.5
3438
bootstrap: tests/bootstrap.php
3539
configuration: phpunit.xml
40+
php_version: ${{ matrix.php-versions }}
3641

3742
- name: Archive code coverage results
3843
uses: actions/upload-artifact@v3

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit backupGlobals="false"
33
backupStaticAttributes="false"
4+
failOnDeprecation="true"
5+
displayDetailsOnTestsThatTriggerDeprecations="true"
6+
displayDetailsOnPhpunitDeprecations="true"
47
verbose="true"
58
bootstrap="tests/bootstrap.php">
69
<testsuites>

0 commit comments

Comments
 (0)