Skip to content

Commit

Permalink
support PHP 8.1 and PHPUnit 9
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Dec 8, 2021
1 parent 29b63fb commit b759acc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["7.1", "7.2", "7.3", "7.4", "8.0"]
php: ["7.1", "7.2", "7.3", "7.4", "8.0", "8.1"]

name: Tests Under PHP ${{ matrix.php }}

Expand All @@ -34,4 +34,11 @@ jobs:
run: ./vendor/bin/phpunit

- name: Run Syntax Checks
run: docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint src
run: |
if [ ${{ matrix.php }} == '7.3' ] ; then
docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:1.60.0-php7.3 phplint src
elif [ ${{ matrix.php }} == '8.1' ] ; then
echo "Skip syntax check for now since Docker image jakzal/phpqa:php8.1 does not exist."
else
docker run --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php${{ matrix.php }} phplint src
fi
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"php": ">=7.1"
},
"require-dev": {
"phpunit/phpunit": "~7.0 || ~8.0",
"phpunit/phpunit": "~7.0 || ~8.0 || ~9.0",
"swoole/ide-helper": "@dev"
},
"suggest": {
Expand Down

0 comments on commit b759acc

Please sign in to comment.