Skip to content

Commit fa96be9

Browse files
authored
chore: update workflows to include PHP 8.4 (#7)
* chore: update workflows to include PHP 8.4 * cs-fix * update devkit to dev-develop * fix phpstan * update cs fixer workflow * fix typo * psalm: disable ensureOverrideAttribute
1 parent 0762fb0 commit fa96be9

12 files changed

+1995
-703
lines changed

.github/workflows/phpcsfixer.yml

+16-3
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,22 @@ on:
1414
- '**.php'
1515
- '.github/workflows/phpcsfixer.yml'
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+
cancel-in-progress: true
20+
21+
permissions:
22+
contents: read
23+
1724
jobs:
1825
build:
19-
name: Coding Standards
26+
name: PHP ${{ matrix.php-versions }} Coding Standards
2027
runs-on: ubuntu-latest
21-
if: "!contains(github.event.head_commit.message, '[ci skip]')"
28+
if: (! contains(github.event.head_commit.message, '[ci skip]'))
29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
php-versions: ['8.2', '8.4']
2233

2334
steps:
2435
- name: Checkout
@@ -27,7 +38,7 @@ jobs:
2738
- name: Set up PHP
2839
uses: shivammathur/setup-php@v2
2940
with:
30-
php-version: '8.2'
41+
php-version: ${{ matrix.php-versions }}
3142
extensions: json, tokenizer
3243
coverage: none
3344
env:
@@ -53,3 +64,5 @@ jobs:
5364
5465
- name: Check code for standards compliance
5566
run: vendor/bin/php-cs-fixer fix --verbose --ansi --dry-run --using-cache=no --diff
67+
env:
68+
PHP_CS_FIXER_IGNORE_ENV: ${{ matrix.php-versions == '8.4' }}

.github/workflows/phpstan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
php-versions: ['8.2', '8.3']
29+
php-versions: ['8.2', '8.4']
3030

3131
steps:
3232
- name: Checkout

.github/workflows/phpunit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: "!contains(github.event.head_commit.message, '[ci skip]')"
2626
strategy:
2727
matrix:
28-
php-versions: ['8.2', '8.3']
28+
php-versions: ['8.2', '8.3', '8.4']
2929
db-platforms: ['MySQLi']
3030

3131
services:

.github/workflows/rector.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
php-versions: ['8.2', '8.3']
29+
php-versions: ['8.2', '8.4']
3030

3131
steps:
3232
- name: Checkout

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"php": "^8.2"
1717
},
1818
"require-dev": {
19-
"codeigniter4/devkit": "^1.0",
19+
"codeigniter4/devkit": "dev-develop",
2020
"codeigniter4/framework": "^4.5"
2121
},
2222
"minimum-stability": "dev",

0 commit comments

Comments
 (0)