Skip to content

Commit 4f4d44f

Browse files
authored
Merge pull request #45 from W0rma/php85
Test against PHP 8.5
2 parents 460e392 + f2454c2 commit 4f4d44f

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,38 @@ on:
55
jobs:
66
tests:
77
runs-on: ubuntu-latest
8+
continue-on-error: ${{ matrix.experimental }}
89

910
strategy:
1011
matrix:
11-
php: [8.1, 8.2, 8.3, 8.4]
12+
php: [8.1, 8.2, 8.3, 8.4, 8.5]
13+
experimental: [false]
14+
include:
15+
- php: 8.6
16+
experimental: true
1217

1318
steps:
1419
- name: Checkout code
15-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
1621

1722
- name: Setup PHP
23+
if: ${{ matrix.php != '8.5' }}
1824
uses: shivammathur/setup-php@v2
1925
with:
2026
php-version: ${{ matrix.php }}
2127
coverage: none
2228

29+
- name: Setup PHP with register_arg_argv
30+
uses: shivammathur/setup-php@v2
31+
if: ${{ matrix.php == '8.5' }}
32+
with:
33+
php-version: ${{ matrix.php }}
34+
coverage: none
35+
# this ini directive seems to be off by default in PHP 8.5
36+
# see https://github.com/php/php-src/issues/20279
37+
# enable it because codeception relies on it.
38+
ini-values: register_argc_argv=1
39+
2340
- name: Validate composer.json and composer.lock
2441
run: composer validate
2542

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
php: [ 8.1, 8.2, 8.3, 8.4 ]
12+
php: [ 8.1, 8.2, 8.3, 8.4, 8.5 ]
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717

1818
- name: Setup PHP
1919
uses: shivammathur/setup-php@v2
2020
with:
2121
php-version: ${{ matrix.php }}
2222
coverage: none
23+
# this ini directive seems to be off by default in PHP 8.5
24+
# see https://github.com/php/php-src/issues/20279
25+
# enable it because codeception relies on it.
26+
ini-values: register_argc_argv=1
2327

2428
- name: Validate composer.json and composer.lock
2529
run: composer validate
@@ -46,7 +50,7 @@ jobs:
4650
- tests
4751
runs-on: ubuntu-latest
4852
steps:
49-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v6
5054
with:
5155
fetch-depth: 0
5256
persist-credentials: false

0 commit comments

Comments
 (0)