@@ -2,9 +2,13 @@ name: Tests
2
2
3
3
on :
4
4
push :
5
- branches : [ main, develop ]
5
+ branches :
6
+ - main
7
+ - develop
6
8
pull_request :
7
- branches : [ main, develop ]
9
+ branches :
10
+ - main
11
+ - develop
8
12
9
13
jobs :
10
14
build :
@@ -15,26 +19,34 @@ jobs:
15
19
fail-fast : true
16
20
matrix :
17
21
php : [8.2, 8.3, 8.4]
22
+ laravel : [11, 12]
23
+ phpunit : ['10.5', '11.0']
18
24
19
25
steps :
20
- - name : Checkout Code
21
- uses : actions/checkout@v4
22
-
23
- - name : Setup PHP
24
- uses : shivammathur/setup-php@v2
25
- with :
26
- php-version : ${{ matrix.php }}
27
- extensions : dom, curl, libxml, mbstring, zip
28
- tools : composer:v2
29
- coverage : none
30
- ini-values : error_reporting=E_ALL
31
-
32
- - name : Install dependencies
33
- uses : nick-fields/retry@v3
34
- with :
35
- timeout_minutes : 5
36
- max_attempts : 5
37
- command : composer update --prefer-dist --no-interaction --no-progress
38
-
39
- - name : Execute tests
40
- run : vendor/bin/phpunit
26
+ - name : Checkout Code
27
+ uses : actions/checkout@v4
28
+
29
+ - name : Setup PHP
30
+ uses : shivammathur/setup-php@v2
31
+ with :
32
+ php-version : ${{ matrix.php }}
33
+ extensions : dom, curl, libxml, mbstring, zip
34
+ tools : composer:v2
35
+ coverage : none
36
+ ini-values : error_reporting=E_ALL
37
+
38
+ - name : Set Laravel Version
39
+ run : composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
40
+
41
+ - name : Set PHPUnit Version
42
+ run : composer require "phpunit/phpunit:^${{ matrix.phpunit }}" --no-update
43
+
44
+ - name : Install dependencies
45
+ uses : nick-fields/retry@v3
46
+ with :
47
+ timeout_minutes : 5
48
+ max_attempts : 5
49
+ command : composer update --prefer-dist --no-interaction --no-progress
50
+
51
+ - name : Execute tests
52
+ run : vendor/bin/phpunit
0 commit comments