File tree Expand file tree Collapse file tree 1 file changed +21
-7
lines changed
Expand file tree Collapse file tree 1 file changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,32 @@ jobs:
1010 phpstan :
1111 runs-on : ubuntu-latest
1212
13+ strategy :
14+ matrix :
15+ php-version : ['8.1', '8.2', '8.3', '8.4']
16+ fail-fast : false
17+
1318 steps :
14- - name : Checkout code
15- uses : actions/checkout@v4
16-
19+ - uses : actions/checkout@v5
20+
1721 - name : Setup PHP
1822 uses : shivammathur/setup-php@v2
1923 with :
20- php-version : ' 8.1'
21- extensions : mbstring, intl
22-
24+ php-version : ${{ matrix.php-version }}
25+ extensions : dom, json, libxml
26+ coverage : xdebug
27+
28+ - name : Cache Composer packages
29+ id : composer-cache
30+ uses : actions/cache@v4
31+ with :
32+ path : vendor
33+ key : ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
34+ restore-keys : |
35+ ${{ runner.os }}-php-${{ matrix.php-version }}-
36+
2337 - name : Install dependencies
24- run : composer install --prefer-dist --no-progress --optimize-autoloader
38+ run : composer install --prefer-dist --no-progress
2539
2640 - name : Generate PHPStan baseline (if not exists)
2741 run : |
You can’t perform that action at this time.
0 commit comments