Skip to content

Commit

Permalink
Add support of PHP8 in CI (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptondereau authored Oct 17, 2020
1 parent ed3482e commit f1476c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
strategy:
matrix:
php-versions: ['7.2', '7.3', '7.4']
include:
- php-versions: "8.0"
dependencies: "highest"
composer-options: "--ignore-platform-reqs"

name: PHP ${{ matrix.php-versions }}

Expand All @@ -24,10 +28,12 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit
tools: phpunit, composer:v2

- name: Install dependencies
run: composer install --prefer-dist
uses: "ramsey/composer-install@v1"
with:
composer-options: "${{ matrix.composer-options }}"

- name: Analysis
run: vendor/bin/phpstan analyse -l 7 src
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"php": ">=7.2"
},
"require-dev": {
"phpunit/phpunit": "^8.4",
"phpunit/phpunit": "^8.4 || ^9.3",
"phpstan/phpstan": "^0.11.16"
},
"autoload": {
Expand Down

0 comments on commit f1476c6

Please sign in to comment.