Skip to content

Commit 9175d6d

Browse files
committed
Enforce PHPUnit 8 for PHP >= 8.1
1 parent 2d24d33 commit 9175d6d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838
3939
- name: Install dependencies
4040
if: steps.composer-cache.outputs.cache-hit != 'true'
41-
run: composer update --prefer-dist --prefer-${{ matrix.setup }} --no-progress --no-interaction ${{ matrix.php >= 8.1 && '--ignore-platform-req=php' || '' }}
41+
run: |
42+
${{ matrix.php >= 8.1 && 'composer require --no-update phpunit/phpunit:^8.5.15 --no-interaction;' || '' }}
43+
composer update --prefer-dist --prefer-${{ matrix.setup }} --no-progress --no-interaction ${{ matrix.php >= 8.1 && '--ignore-platform-req=php' || '' }}
4244
4345
- name: Run test suite
4446
run: vendor/bin/phpunit --no-coverage --verbose

0 commit comments

Comments
 (0)