Skip to content

Commit 777cfb6

Browse files
committed
chore: add phpunit version to CI matrix
1 parent fd58e53 commit 777cfb6

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
tests:
14-
name: PHP ${{ matrix.php-version }} on ${{ matrix.os }} (${{ matrix.prefer-lowest }})
14+
name: PHP ${{ matrix.php-version }} PHPUnit ${{matrix.phpunit-version}} on ${{ matrix.os }} (${{ matrix.prefer-lowest }})
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
fail-fast: false
@@ -25,15 +25,29 @@ jobs:
2525
- ubuntu-latest
2626
- windows-latest
2727
- macOS-latest
28+
phpunit-version:
29+
- "10"
30+
- "11"
31+
- "12"
2832
prefer-lowest:
2933
- ""
3034
- "--prefer-lowest"
3135
include:
3236
# PHPUnit ^10.5.32 is incompatible with paratest 7.3.
3337
# Paratest 7.4.6, which fixes the incompatibility, requires PHP 8.2
3438
- php-version: "8.1"
35-
prefer-lowest: ""
39+
phpunit-version: "10"
3640
update-constraints: "--with=phpunit/phpunit:<10.5.32"
41+
exclude:
42+
# PHPUnit ^11 requires PHP 8.2
43+
- phpunit-version: "11"
44+
php-version: "8.1"
45+
46+
# PHPUnit ^12 requires PHP 8.3
47+
- phpunit-version: "12"
48+
php-version: "8.1"
49+
- phpunit-version: "12"
50+
php-version: "8.2"
3751
steps:
3852
- name: Checkout
3953
uses: actions/checkout@v4

0 commit comments

Comments
 (0)