Skip to content

Commit f450cd9

Browse files
authored
Add CI support for PHP 8.4 (#26)
Signed-off-by: Marcel Strahl <info@marcel-strahl.de>
1 parent e798199 commit f450cd9

File tree

2 files changed

+45
-9
lines changed

2 files changed

+45
-9
lines changed

.github/workflows/ci.yml

+39-3
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
run: "composer test"
7272

7373
- name: "Run PHP CS Check"
74-
run: "PHP_CS_FIXER_IGNORE_ENV=1 composer cs-check"
74+
run: "composer cs-check"
7575

7676
- name: "Run Psalm"
7777
run: "composer psalm"
@@ -107,12 +107,48 @@ jobs:
107107
run: "composer test"
108108

109109
- name: "Run PHP CS Check"
110-
run: "PHP_CS_FIXER_IGNORE_ENV=1 composer cs-check"
110+
run: "composer cs-check"
111111

112112
- name: "Run Psalm"
113113
run: "composer psalm"
114114

115115
- name: "Run infection"
116116
env:
117117
INFECTION_BADGE_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
118-
run: "composer infection-ci"
118+
run: "composer infection-ci"
119+
120+
php84:
121+
name: PHP 8.4
122+
runs-on: ubuntu-latest
123+
steps:
124+
- name: "Checkout"
125+
uses: "actions/checkout@v4"
126+
with:
127+
fetch-depth: 2
128+
129+
- name: "Install PHP 8.4"
130+
uses: "shivammathur/setup-php@v2"
131+
with:
132+
php-version: "8.4"
133+
134+
- name: "Cache composer packages"
135+
uses: "actions/cache@v4"
136+
with:
137+
path: "~/.composer/cache"
138+
key: "php-composer-locked-${{ hashFiles('composer.lock') }}"
139+
restore-keys: "php-composer-locked-"
140+
141+
- name: "Install dependencies with composer"
142+
run: "composer install --no-interaction"
143+
144+
- name: "Run PHPUnit Tests"
145+
run: "composer test"
146+
147+
- name: "Run PHP CS Check"
148+
run: "PHP_CS_FIXER_IGNORE_ENV=1 composer cs-check"
149+
150+
- name: "Run Psalm"
151+
run: "composer psalm"
152+
153+
- name: "Run infection"
154+
run: "composer infection-ci"

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"ext-bcmath": "*"
1717
},
1818
"require-dev": {
19-
"friendsofphp/php-cs-fixer": "^3.51",
20-
"infection/infection": "^0.27.10",
19+
"friendsofphp/php-cs-fixer": "^3.68",
20+
"infection/infection": "0.27.10|^0.29.10",
2121
"phpstan/extension-installer": "*",
22-
"phpunit/phpunit": "^10.5 | ^11.0",
23-
"psalm/plugin-phpunit": "^0.18",
24-
"squizlabs/php_codesniffer": "^3.9",
25-
"vimeo/psalm": "^5.4"
22+
"phpunit/phpunit": "^10.5 | ^11.5",
23+
"psalm/plugin-phpunit": "^0.19",
24+
"squizlabs/php_codesniffer": "^3.11",
25+
"vimeo/psalm": "^5.0|^6.0"
2626
},
2727
"autoload": {
2828
"psr-4": {

0 commit comments

Comments
 (0)