File tree Expand file tree Collapse file tree 1 file changed +37
-20
lines changed Expand file tree Collapse file tree 1 file changed +37
-20
lines changed Original file line number Diff line number Diff line change 7
7
strategy :
8
8
fail-fast : true
9
9
matrix :
10
- php : [ 7.4, 8.1, 8.3 ]
11
- laravel : [ 6.*, 8.*, 9.*, 12.* ]
12
- exclude :
13
- - php : 8.1
14
- laravel : 6.*
15
- - php : 8.3
16
- laravel : 6.*
17
- - php : 7.4
18
- laravel : 9.*
19
- - php : 7.4
20
- laravel : 12.*
21
10
include :
22
- - aravel : 6.*
11
+ # PHP 7.4 supports Laravel 6 & 8
12
+ - php : 7.4
13
+ laravel : 6.*
23
14
testbench : 4.*
24
15
phpunit : 8.*
25
- - laravel : 8.*
16
+ - php : 7.4
17
+ laravel : 8.*
26
18
testbench : 6.*
27
19
phpunit : 9.*
28
- - laravel : 9.*
20
+
21
+ # PHP 8.1 supports Laravel 8 & 9
22
+ - php : 8.1
23
+ laravel : 8.*
24
+ testbench : 6.*
25
+ phpunit : 9.*
26
+ - php : 8.1
27
+ laravel : 9.*
28
+ testbench : 7.*
29
+ phpunit : 9.*
30
+
31
+ # PHP 8.3 supports Laravel 8, 9, and 12
32
+ - php : 8.3
33
+ laravel : 8.*
34
+ testbench : 6.*
35
+ phpunit : 9.*
36
+ - php : 8.3
37
+ laravel : 9.*
29
38
testbench : 7.*
30
39
phpunit : 9.*
31
- - laravel : 12.*
40
+ - php : 8.3
41
+ laravel : 12.*
32
42
testbench : 10.x
33
43
phpunit : 11.*
44
+
34
45
steps :
35
46
- name : Check out repository code
36
- uses : actions/checkout@v2
47
+ uses : actions/checkout@v4
48
+
37
49
- name : Setup PHP
38
50
uses : shivammathur/setup-php@v2
39
51
with :
40
52
php-version : ${{ matrix.php }}
53
+
41
54
- name : Install dependencies
42
55
run : |
43
- composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
44
- composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
56
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --no-interaction --no-update
57
+ composer update --prefer-stable --prefer-dist --no-interaction
58
+
45
59
- name : Cache dependencies
46
- uses : actions/cache@v1
60
+ uses : actions/cache@v3
47
61
with :
48
62
path : ~/.composer/cache/files
49
- key : dependencies-${{ matrix.dependency-version }}-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
63
+ key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json', 'composer.lock') }}
64
+ restore-keys : |
65
+ dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-
66
+
50
67
- name : Execute tests
51
68
run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments