Skip to content

Commit 6028709

Browse files
committed
Run github actions with PHP 8.3, run tests with PHP 8.4
1 parent 81d41e2 commit 6028709

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.github/workflows/code-style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
php: ['8.2']
15+
php: ['8.3']
1616

1717
name: "Check code style | PHP ${{ matrix.php }}"
1818

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
operating-system: ['ubuntu-latest']
17-
php: ['8.2']
17+
php: ['8.3']
1818

1919
steps:
2020
- name: Checkout

.github/workflows/unit-tests.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
operating-system: ['ubuntu-latest']
17-
php: ['7.4', '8.0', '8.1', '8.2', '8.3']
17+
php: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
1818

1919
steps:
2020
- name: Checkout
@@ -23,18 +23,27 @@ jobs:
2323
fetch-depth: 2
2424

2525
- name: Setup PHP with composer and extensions
26+
if: ${{ matrix.php =< '8.3' }}
2627
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
2728
with:
2829
php-version: ${{ matrix.php }}
2930
coverage: xdebug
3031
tools: none
3132

33+
- name: Setup PHP with composer and extensions (PHP 8.4)
34+
if: ${{ matrix.php >= '8.4' }}
35+
uses: shivammathur/setup-php@v2 #https://github.com/shivammathur/setup-php
36+
with:
37+
php-version: ${{ matrix.php }}
38+
coverage: none
39+
tools: none
40+
3241
- name: "Install Composer dependencies"
33-
if: ${{ matrix.php < '8.3' }}
42+
if: ${{ matrix.php =< '8.3' }}
3443
uses: "ramsey/composer-install@v2"
3544

36-
- name: "Install Composer dependencies (PHP 8.3)"
37-
if: ${{ matrix.php >= '8.3' }}
45+
- name: "Install Composer dependencies (PHP 8.4)"
46+
if: ${{ matrix.php >= '8.4' }}
3847
uses: "ramsey/composer-install@v2"
3948
with:
4049
composer-options: --ignore-platform-reqs
@@ -43,7 +52,7 @@ jobs:
4352
run: composer run phpunit -- --coverage-clover .phpunit.cache/clover.xml
4453

4554
- name: Upload coverage reports to Codecov
46-
if: ${{ success() && matrix.php == '8.2' }}
55+
if: ${{ success() && matrix.php == '8.3' }}
4756
uses: codecov/codecov-action@v3
4857
env:
4958
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": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0"
16+
"php": "^7.4 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0"
1717
},
1818
"require-dev": {
1919
"friendsofphp/php-cs-fixer": "^3.35",

0 commit comments

Comments
 (0)