Skip to content

Commit 2d4ada2

Browse files
rlerdorfclaude
andcommitted
CI: test against PHP 8.6 via setup-php nightly
There is no published php:8.6 docker image yet, so 8.6 cannot be added to the existing docker-based test matrix. Add a separate job using shivammathur/setup-php, which provides an 8.6 build compiled from php-src master. The job is marked continue-on-error since 8.6 is still in development and is a moving target. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 583843e commit 2d4ada2

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,32 @@ jobs:
4545
# Runs a single command using the runners shell
4646
- name: Build and test in docker
4747
run: bash ci/test_dockerized.sh ${{ matrix.PHP_VERSION }}
48+
49+
# PHP 8.6 has no published `php:8.6` docker image yet, so it cannot be tested
50+
# via the docker matrix above. Use setup-php's nightly build (compiled from
51+
# php-src master) instead. This is allowed to fail since 8.6 is still in
52+
# development.
53+
build-nightly:
54+
runs-on: ubuntu-latest
55+
continue-on-error: true
56+
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
include:
61+
- PHP_VERSION: '8.6'
62+
63+
steps:
64+
- uses: actions/checkout@v2
65+
66+
- name: Setup PHP
67+
uses: shivammathur/setup-php@v2
68+
with:
69+
php-version: ${{ matrix.PHP_VERSION }}
70+
71+
- name: Build and test
72+
run: |
73+
phpize
74+
EXTRA_CFLAGS='-Wall -Wextra -Wno-unused-parameter' ./configure
75+
make -j2
76+
NO_INTERACTION=1 REPORT_EXIT_STATUS=1 make test TESTS="--show-diff"

0 commit comments

Comments
 (0)