Skip to content

Commit 7326c41

Browse files
committed
Test on PHP 8.6 in CI, without blocking on it
PHP 8.6 is close to release, so the basic tests now also run on a nightly build of its branch. That leg may fail without failing the run, so it shows what 8.6 breaks or deprecates without blocking a merge; once 8.6 is released and the leg is green, it moves into the regular versions. The leg installs the dependencies with --ignore-platform-req=php+, since the current releases of league/oauth2-server, lcobucci/jwt, nette and Psalm do not admit PHP 8.6 yet, and the install would stop before any test ran. Assisted-by: Claude Code (claude-opus-5-5, CI configuration)
1 parent 3ee0590 commit 7326c41

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

‎.github/workflows/test.yaml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ jobs:
1010
basic-tests:
1111
name: Syntax and unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}
1212
runs-on: [ubuntu-latest]
13+
# A failure of the experimental leg below shows red without failing the run.
14+
continue-on-error: ${{ matrix.experimental }}
1315
strategy:
1416
fail-fast: false
1517
matrix:
1618
php-versions: ["8.3", "8.4", "8.5"]
19+
experimental: [false]
20+
include:
21+
# PHP 8.6 before its release: setup-php installs a nightly build of the PHP-8.6 branch. It informs
22+
# without blocking: any deprecation 8.6 adds fails its tests, as on every leg. Once 8.6 is released
23+
# and this leg is green, move it into php-versions above.
24+
- php-versions: "8.6"
25+
experimental: true
1726

1827
steps:
1928
- name: Setup PHP, with composer and extensions
@@ -51,8 +60,11 @@ jobs:
5160
- name: Validate composer.json and composer.lock
5261
run: composer validate
5362

63+
# On the experimental leg, the dependencies whose releases do not admit that PHP yet (league/oauth2-server,
64+
# lcobucci/jwt, nette and Psalm, for 8.6) are installed anyway, so that the tests run; php+ ignores only
65+
# their upper bounds.
5466
- name: Install Composer dependencies
55-
run: composer install --no-progress --prefer-dist --optimize-autoloader
67+
run: composer install --no-progress --prefer-dist --optimize-autoloader ${{ matrix.experimental && '--ignore-platform-req=php+' || '' }}
5668

5769
- name: Decide whether to run code coverage or not
5870
if: ${{ matrix.php-versions != '8.5' }}

0 commit comments

Comments
 (0)