Skip to content

Commit

Permalink
Use PHPUnit 8 for PHP >= 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Nov 19, 2021
1 parent cbd5883 commit 7f3924a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Expand Up @@ -38,7 +38,9 @@ jobs:

- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer update --prefer-dist --no-progress --no-suggest --prefer-${{ matrix.setup || 'stable' }} ${{ matrix.php >= 8 && '--ignore-platform-req=php' || '' }}
run: |
${{ matrix.php >= 8.1 && 'composer require --no-update phpunit/phpunit:^8.5.14 --no-interaction;' || '' }}
composer update --prefer-dist --no-progress --no-suggest --prefer-${{ matrix.setup || 'stable' }} ${{ matrix.php >= 8 && '--ignore-platform-req=php' || '' }}
- name: Run test suite
run: vendor/bin/phpunit --no-coverage

0 comments on commit 7f3924a

Please sign in to comment.