Skip to content

Commit a6ac74f

Browse files
authored
chore(ci): test against php 8.5 (#34)
* chore(ci): bump actions/checkout version * chore(ci): test against php 8.5
1 parent 8acceb7 commit a6ac74f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,32 @@ jobs:
88

99
strategy:
1010
matrix:
11-
php: [8.2, 8.3, 8.4]
11+
php: [8.2, 8.3, 8.4, 8.5]
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616

17-
- name: Setup PHP
17+
- name: Setup PHP != 8.5
18+
if: ${{ matrix.php != '8.5' }}
1819
uses: shivammathur/setup-php@v2
1920
with:
2021
php-version: ${{ matrix.php }}
2122
coverage: none
2223
tools: phpstan, phpcs
2324

25+
- name: Setup PHP 8.5
26+
if: ${{ matrix.php == '8.5' }}
27+
uses: shivammathur/setup-php@v2
28+
with:
29+
php-version: ${{ matrix.php }}
30+
coverage: none
31+
tools: phpstan, phpcs
32+
# this ini directive seems to be off by default in PHP 8.5
33+
# see https://github.com/php/php-src/issues/20279
34+
# enable it because codeception relies on it.
35+
ini-values: register_argc_argv=1
36+
2437
- name: Validate composer.json and composer.lock
2538
run: composer validate
2639

0 commit comments

Comments
 (0)