Skip to content

Commit

Permalink
Use PHP8-compatible version of PHPUnit
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Jul 18, 2020
1 parent 7fe7078 commit 3f8c70e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ jobs:

- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

- name: "Choose PHPUnit version"
run: |
if [ "${{ matrix.php }}" = "7.1" ]; then
echo "::set-env name=SYMFONY_PHPUNIT_VERSION::7.5";
elif [ "${{ matrix.php }}" = "8.0" ]; then
echo "::set-env name=SYMFONY_PHPUNIT_VERSION::9.3";
else
echo "::set-env name=SYMFONY_PHPUNIT_VERSION::8.3";
fi
- name: "Require latest PHPUnit Bridge for PHP 8"
if: "matrix.php == '8.0'"
run: composer require --no-update --dev symfony/phpunit-bridge:5.1.*@dev

- run: composer update --no-progress ${{ matrix.composer-flags }}

- run: vendor/bin/simple-phpunit --no-coverage
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"symfony/finder": "^4.2",
"symfony/phpunit-bridge": "^5.1"
},
"minimum-stability": "dev",
"prefer-stable": true,
"conflict": {
"scrutinizer/ocular": "1.7.*"
},
Expand Down

0 comments on commit 3f8c70e

Please sign in to comment.