Skip to content

Commit 8ec225f

Browse files
committed
update cs fixer workflow
1 parent 5e43a0d commit 8ec225f

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/phpcsfixer.yml

Lines changed: 16 additions & 3 deletions
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.1', '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' }}

0 commit comments

Comments
 (0)