Skip to content

Commit

Permalink
ci: Add PHP8 in matrix tests. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptondereau authored Sep 13, 2020
1 parent 8847f68 commit e188aca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

strategy:
matrix:
php: [7.2, 7.3, 7.4]
php: [7.2, 7.3, 7.4, 8.0]
extension: [':bcmath', ':gmp']

name: PHP ${{ matrix.php }}
Expand All @@ -20,7 +20,20 @@ jobs:
php-version: ${{ matrix.php }}
coverage: xdebug
extensions: ${{ matrix.extension }}
- run: composer install --prefer-dist --no-interaction
tools: composer:v2
- name: Install PHP 8 Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --no-interaction --no-progress --ignore-platform-req=php
if: "matrix.php >= 8"
- name: Install PHP 7 Dependencies
uses: nick-invision/retry@v1
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --no-interaction --prefer-dist --no-progress
if: "matrix.php < 8"
- run: vendor/bin/phpunit --coverage-text
- run: vendor/bin/phpcs --standard=PSR12 --colors -n src tests

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.2 || ^8.0",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^8.0",
"phpunit/phpunit": "^8.0 || ^9.3",
"squizlabs/php_codesniffer": "^3.5"
},
"suggest": {
Expand Down

0 comments on commit e188aca

Please sign in to comment.