@@ -2,46 +2,49 @@ name: Tests
22
33on :
44 push :
5- branches : [ main, develop ]
5+ branches :
6+ - main
7+ - develop
68 pull_request :
7- branches : [ main, develop ]
9+ branches :
10+ - main
11+ - develop
812
913jobs :
1014 build :
11-
1215 runs-on : ubuntu-latest
1316
1417 strategy :
1518 fail-fast : true
1619 matrix :
1720 php : [8.2, 8.3, 8.4]
18- laravel : [10, 11]
21+ laravel : [10, 11, 12 ]
1922 phpunit : [10.5, 11]
2023
2124 steps :
22- - name : Checkout Code
23- uses : actions/checkout@v3
24-
25- - name : Setup PHP
26- uses : shivammathur/setup-php@v2
27- with :
28- php-version : ${{ matrix.php }}
29- extensions : dom, curl, libxml, mbstring, zip
30- tools : composer:v2
31- coverage : none
32-
33- - name : Set Laravel Version
34- run : composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
35-
36- - name : Set PHPUnit Version
37- run : composer require "phpunit/phpunit:^${{ matrix.laravel }}" --no-update
38-
39- - name : Install dependencies
40- uses : nick-fields/retry@v2
41- with :
42- timeout_minutes : 5
43- max_attempts : 5
44- command : composer update --prefer-dist --no-interaction --no-progress
45-
46- - name : Execute tests
47- run : vendor/bin/phpunit
25+ - name : Checkout Code
26+ uses : actions/checkout@v4
27+
28+ - name : Setup PHP
29+ uses : shivammathur/setup-php@v2
30+ with :
31+ php-version : ${{ matrix.php }}
32+ extensions : dom, curl, libxml, mbstring, zip
33+ tools : composer:v2
34+ coverage : none
35+
36+ - name : Set Laravel Version
37+ run : composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
38+
39+ - name : Set PHPUnit Version
40+ run : composer require "phpunit/phpunit:^${{ matrix.phpunit }}" --no-update
41+
42+ - name : Install dependencies
43+ uses : nick-fields/retry@v3
44+ with :
45+ timeout_minutes : 5
46+ max_attempts : 5
47+ command : composer update --prefer-dist --no-interaction --no-progress
48+
49+ - name : Execute tests
50+ run : vendor/bin/phpunit
0 commit comments