Skip to content

Commit 56ffc5a

Browse files
committed
GH Actions: be explicit about versions and test against 8.1
This adds an "experimental" build against PHP 8.1 as an early detection system for compatibility issues. This build is allowed to fail.
1 parent fc51459 commit 56ffc5a

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
php: [8.x, 7.4, 7.3]
24+
php: [8.0, 7.4, 7.3]
2525
dependency-version: [prefer-lowest, prefer-stable]
26+
experimental: [false]
27+
28+
include:
29+
- php: '8.1'
30+
dependency-version: 'prefer-stable'
31+
experimental: true
2632

2733
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
34+
continue-on-error: ${{ matrix.experimental }}
2835

2936
steps:
3037
- name: Checkout code
@@ -37,9 +44,15 @@ jobs:
3744
coverage: none
3845
tools: composer
3946

40-
- name: Install dependencies
47+
- name: Install dependencies - normal
48+
if: ${{ matrix.php < 8.1 }}
4149
run: |
4250
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress
4351
52+
- name: Install dependencies - ignore platform reqs
53+
if: ${{ matrix.php >= 8.1 }}
54+
run: |
55+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --ignore-platform-reqs
56+
4457
- name: Execute Unit Tests
4558
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)