Skip to content

Commit 48883a6

Browse files
authored
Test against PHP 8.5 + drop support for PHP < 8.2 (#117)
* Bump actions/checkout version * Drop support for PHP 8.1 * Test against PHP 8.5
1 parent 5db3a2e commit 48883a6

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,31 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php: [8.1, 8.2, 8.3, 8.4]
14+
php: [8.2, 8.3, 8.4, 8.5]
1515
composer-options: ["", "--prefer-lowest"]
1616

1717
steps:
1818
- name: Checkout code
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v6
2020

21-
- name: Setup PHP
21+
- name: Setup PHP != 8.5
22+
if: ${{ matrix.php != '8.5' }}
2223
uses: shivammathur/setup-php@v2
2324
with:
2425
php-version: ${{ matrix.php }}
2526
coverage: none
2627

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"homepage": "https://codeception.com/",
1616
"require": {
17-
"php": "^8.1",
17+
"php": "^8.2",
1818
"ext-dom": "*",
1919
"ext-json": "*",
2020
"codeception/codeception": "^5.0.8",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A REST module for Codeception
99

1010
## Requirements
1111

12-
* `PHP 8` or higher.
12+
* `PHP 8.2` or higher.
1313

1414
## Installation
1515

0 commit comments

Comments
 (0)