Skip to content

Commit 6832a06

Browse files
committed
test matrix
1 parent 4b05028 commit 6832a06

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ jobs:
1818
matrix:
1919
os: [ubuntu-latest, windows-latest]
2020
php: [8.4]
21+
phpunit: [10.*, 11.*, 12.*]
2122
stability: [prefer-lowest, prefer-stable]
2223

23-
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
24+
name: P${{ matrix.php }} - PHPUnit:${{ matrix.phpunit }} - ${{ matrix.stability }} - ${{ matrix.os }}
2425

2526
steps:
2627
- name: Checkout code
@@ -39,7 +40,9 @@ jobs:
3940
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
4041
4142
- name: Install dependencies
42-
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
43+
run: |
44+
composer require "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
45+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
4346
4447
- name: List Installed Dependencies
4548
run: composer show -D

0 commit comments

Comments
 (0)