Skip to content

Commit

Permalink
[8.x] PHP 8.1 builds (#36700)
Browse files Browse the repository at this point in the history
* Ignore platform reqs

* Prefer stable

* Re-enable tests

* Skip PHP 8.1 build failures

* Update tests.yml
  • Loading branch information
driesvints authored Mar 22, 2021
1 parent 213b58d commit f201b81
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
matrix:
php: ['7.3', '7.4', '8.0']
stability: [prefer-lowest, prefer-stable]
include:
- php: '8.1'
flags: "--ignore-platform-req=php"
stability: prefer-stable


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

Expand Down Expand Up @@ -61,9 +66,10 @@ jobs:
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}

- name: Execute tests
continue-on-error: ${{ matrix.php > 8 }}
run: vendor/bin/phpunit --verbose
env:
DB_PORT: ${{ job.services.mysql.ports[3306] }}
Expand All @@ -77,6 +83,10 @@ jobs:
matrix:
php: ['7.3', '7.4', '8.0']
stability: [prefer-lowest, prefer-stable]
include:
- php: '8.1'
flags: "--ignore-platform-req=php"
stability: prefer-stable

name: PHP ${{ matrix.php }} - ${{ matrix.stability }} - Windows

Expand Down Expand Up @@ -110,7 +120,8 @@ jobs:
with:
timeout_minutes: 5
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}

- name: Execute tests
continue-on-error: ${{ matrix.php > 8 }}
run: vendor/bin/phpunit --verbose

0 comments on commit f201b81

Please sign in to comment.