@@ -4,28 +4,34 @@ on: [push, pull_request]
44
55jobs :
66 build :
7+ name : PHP ${{ matrix.php }}
78 runs-on : ubuntu-latest
89 if : " !contains(github.event.head_commit.message, '[ci skip]')"
910 strategy :
1011 matrix :
1112 php : ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
12- name : PHP ${{ matrix.php }}
13+
1314 steps :
14- - uses : actions/checkout@v4
15- - name : Setup PHP
16- uses : shivammathur/setup-php@2.30.0
17- with :
18- php-version : ${{ matrix.php }}
19- - name : Cache Composer packages
20- id : composer-cache
21- uses : actions/cache@v4
22- with :
23- path : " ~/.composer/cache"
24- key : " php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
25- restore-keys : " php-${{ matrix.php }}-composer-"
26- - name : Install dependencies
27- run : composer install --prefer-dist --no-interaction
28- - name : Run PHPStan
29- run : ./vendor/bin/phpstan analyze --no-progress
30- - name : Run PHPUnit
31- run : ./vendor/bin/phpunit tests/phpunit --fail-on-warning
15+ - uses : actions/checkout@v4
16+
17+ - name : Setup PHP
18+ uses : shivammathur/setup-php@2.30.0
19+ with :
20+ php-version : ${{ matrix.php }}
21+
22+ - name : Cache Composer packages
23+ id : composer-cache
24+ uses : actions/cache@v4
25+ with :
26+ path : " ~/.cache/composer"
27+ key : " php-${{ matrix.php }}-composer2-${{ hashFiles('**/composer.json') }}"
28+ restore-keys : " php-${{ matrix.php }}-composer2-"
29+
30+ - name : Install dependencies
31+ run : composer install --prefer-dist --no-interaction
32+
33+ - name : Run PHPStan
34+ run : ./vendor/bin/phpstan analyze --no-progress
35+
36+ - name : Run PHPUnit
37+ run : ./vendor/bin/phpunit tests/phpunit --fail-on-warning
0 commit comments