9
9
strategy :
10
10
fail-fast : false
11
11
matrix :
12
- php : [8.2, 8.3, 8.4]
12
+ php :
13
+ - version : 8.2
14
+ - version : 8.3
15
+ - version : 8.4
16
+ env : PHP_CS_FIXER_IGNORE_ENV=1
13
17
stability : [prefer-lowest, prefer-stable]
14
18
15
- name : PHP ${{ matrix.php }} - ${{ matrix.stability }}
19
+ name : PHP ${{ matrix.php.version }} - ${{ matrix.stability }}
16
20
17
21
steps :
18
22
- name : Checkout code
19
23
uses : actions/checkout@v4
20
24
- name : Setup PHP
21
25
uses : shivammathur/setup-php@v2
22
26
with :
23
- php-version : ${{ matrix.php }}
27
+ php-version : ${{ matrix.php.version }}
24
28
tools : composer:v2, cs2pr
25
29
coverage : none
26
30
- name : Setup problem matchers for PHPUnit
@@ -32,12 +36,12 @@ jobs:
32
36
uses : actions/cache@v4
33
37
with :
34
38
path : ${{ steps.composer-cache.outputs.dir }}
35
- key : dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }}
36
- restore-keys : dependencies-${{ matrix.php }}-${{ matrix.stability }}-composer-
39
+ key : dependencies-${{ matrix.php.version }}-${{ matrix.stability }}-composer-${{ hashFiles('**/composer.lock') }}
40
+ restore-keys : dependencies-${{ matrix.php.version }}-${{ matrix.stability }}-composer-
37
41
- name : Install dependencies
38
42
run : composer update --${{ matrix.stability }} --prefer-dist --no-interaction
39
43
- name : Check coding style
40
- run : composer run style:check -- --format=checkstyle | cs2pr
44
+ run : ${{ matrix.php.env }} composer run style:check -- --format=checkstyle | cs2pr
41
45
- name : Check static analysis
42
46
run : composer run analyze -- --error-format=checkstyle | cs2pr
43
47
- name : Configure matchers for PHPUnit
0 commit comments