Skip to content

Commit f201b81

Browse files
authored
[8.x] PHP 8.1 builds (#36700)
* Ignore platform reqs * Prefer stable * Re-enable tests * Skip PHP 8.1 build failures * Update tests.yml
1 parent 213b58d commit f201b81

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
matrix:
3434
php: ['7.3', '7.4', '8.0']
3535
stability: [prefer-lowest, prefer-stable]
36+
include:
37+
- php: '8.1'
38+
flags: "--ignore-platform-req=php"
39+
stability: prefer-stable
40+
3641

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

@@ -61,9 +66,10 @@ jobs:
6166
with:
6267
timeout_minutes: 5
6368
max_attempts: 5
64-
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
69+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
6570

6671
- name: Execute tests
72+
continue-on-error: ${{ matrix.php > 8 }}
6773
run: vendor/bin/phpunit --verbose
6874
env:
6975
DB_PORT: ${{ job.services.mysql.ports[3306] }}
@@ -77,6 +83,10 @@ jobs:
7783
matrix:
7884
php: ['7.3', '7.4', '8.0']
7985
stability: [prefer-lowest, prefer-stable]
86+
include:
87+
- php: '8.1'
88+
flags: "--ignore-platform-req=php"
89+
stability: prefer-stable
8090

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

@@ -110,7 +120,8 @@ jobs:
110120
with:
111121
timeout_minutes: 5
112122
max_attempts: 5
113-
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
123+
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress ${{ matrix.flags }}
114124

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

0 commit comments

Comments
 (0)