Skip to content

Commit 597a811

Browse files
authored
adding php8.1 as an experimental build (#514)
a failing experimental job no longer stops the whole build, although we will see a red X. There is a feature request to be able to set jobs as "allowed-to-fail", but until that feature exists this looks like the best github actions can do.
1 parent e0b2d7d commit 597a811

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/php.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,26 @@ on:
1010
jobs:
1111
build:
1212

13-
runs-on: ubuntu-latest
13+
runs-on: ${{ matrix.os }}
14+
continue-on-error: ${{ matrix.experimental }}
1415
strategy:
16+
fail-fast: false
1517
matrix:
16-
operating-system: [ubuntu-latest]
17-
php-versions: ['7.4', '8.0']
18+
php-version: ['7.4', '8.0']
19+
os: [ubuntu-latest]
20+
experimental: [false]
21+
include:
22+
- php-version: 8.1
23+
os: ubuntu-latest
24+
experimental: true
1825

1926
steps:
2027
- uses: actions/checkout@v2
2128

2229
- name: Setup PHP
2330
uses: shivammathur/setup-php@v2
2431
with:
25-
php-version: ${{ matrix.php-versions }}
32+
php-version: ${{ matrix.php-version }}
2633
coverage: xdebug
2734
tools: php-cs-fixer
2835
extensions: ast, grpc

0 commit comments

Comments
 (0)