Skip to content

Commit cab59b6

Browse files
committed
Allow PHP 8.4, run tests with PHP 8.5
1 parent d156fb4 commit cab59b6

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/unit-tests.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
operating-system: ['ubuntu-latest']
17-
php: ['8.1', '8.2', '8.3', '8.4']
17+
php:
18+
- '8.5'
19+
- '8.4'
20+
- '8.3'
21+
- '8.2'
22+
- '8.1'
1823

1924
steps:
2025
- name: Checkout
@@ -30,11 +35,11 @@ jobs:
3035
tools: none
3136

3237
- name: "Install Composer dependencies"
33-
if: ${{ matrix.php <= '8.3' }}
38+
if: ${{ matrix.php <= '8.4' }}
3439
uses: "ramsey/composer-install@v2"
3540

36-
- name: "Install Composer dependencies (PHP 8.4)"
37-
if: ${{ matrix.php >= '8.4' }}
41+
- name: "Install Composer dependencies (PHP 8.5)"
42+
if: ${{ matrix.php >= '8.5' }}
3843
uses: "ramsey/composer-install@v2"
3944
with:
4045
composer-options: --ignore-platform-reqs
@@ -43,7 +48,7 @@ jobs:
4348
run: composer run phpunit -- --coverage-clover .phpunit.cache/clover.xml
4449

4550
- name: Upload coverage reports to Codecov
46-
if: ${{ success() && matrix.php == '8.3' }}
51+
if: ${{ success() && matrix.php == '8.4' }}
4752
uses: codecov/codecov-action@v3
4853
env:
4954
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414
],
1515
"require": {
16-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0"
16+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3.40",

0 commit comments

Comments
 (0)