@@ -2,42 +2,44 @@ name: PHP Composer
22
33on :
44 push :
5- branches : [ main ]
5+ branches :
6+ - main
67 pull_request :
7- branches : [ main ]
8+ branches :
9+ - main
810
911jobs :
1012 build :
1113 strategy :
1214 matrix :
13- php : ['7.4', '8.0', '8.1']
15+ php : ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
1416 runs-on : ubuntu-latest
1517
1618 steps :
17- - uses : actions/checkout@v2
18-
19- - name : Setup PHP
20- uses : shivammathur/setup-php@v2
21- with :
22- php-version : ${{ matrix.php }}
23-
24- - name : Cache Composer packages
25- id : composer-cache
26- uses : actions/cache@v2
27- with :
28- path : vendor
29- key : ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
30- restore-keys : |
31- ${{ runner.os }}-php-${{ matrix.php }}-
32-
33- - name : Remove pint if not PHP 8.1
34- run : |
35- if [ '${{ matrix.php }}' != '8.1' ]; then
36- composer remove laravel/pint --dev
37- fi
38-
39- - name : Install dependencies
40- run : composer install --prefer-dist --no-progress
41-
42- - name : Run test suite
43- run : composer run test
19+ - uses : actions/checkout@v4
20+
21+ - name : Setup PHP
22+ uses : shivammathur/setup-php@v2
23+ with :
24+ php-version : ${{ matrix.php }}
25+
26+ - name : Cache Composer packages
27+ id : composer-cache
28+ uses : actions/cache@v4
29+ with :
30+ path : vendor
31+ key : " ${{ runner.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}"
32+ restore-keys : |
33+ ${{ runner.os }}-php-${{ matrix.php }}-
34+
35+ - name : Remove pint if not PHP 8.1
36+ run : |
37+ if [ '${{ matrix.php }}' != '8.1' ]; then
38+ composer remove laravel/pint --dev
39+ fi
40+
41+ - name : Install dependencies
42+ run : composer install --prefer-dist --no-progress
43+
44+ - name : Run test suite
45+ run : composer run test
0 commit comments