File tree 1 file changed +21
-3
lines changed
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
build :
15
15
if : " !contains(github.event.head_commit.message, 'skip ci')"
16
+
16
17
runs-on : ubuntu-latest
18
+
17
19
strategy :
18
20
matrix :
19
21
php : ['7.2', '7.3', '7.4']
20
- name : PHP ${{ matrix.php }}
22
+ laravel : ['6.*', '7.*', '8.*']
23
+ prefer : ['prefer-lowest', 'prefer-stable']
24
+ include :
25
+ - laravel : ' 6.*'
26
+ testbench : ' 4.*'
27
+ - laravel : ' 7.*'
28
+ testbench : ' 5.*'
29
+ - laravel : ' 8.*'
30
+ testbench : ' 6.*'
31
+
32
+ name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} --${{ matrix.prefer }}
33
+
21
34
steps :
22
35
- uses : actions/checkout@v1
36
+
23
37
- uses : actions/cache@v1
24
38
name : Cache dependencies
25
39
with :
26
40
path : ~/.composer/cache/files
27
- key : composer-php-${{ matrix.php }}-${{ hashFiles('composer.json') }}
41
+ key : composer-php-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }}
42
+
28
43
- name : Install dependencies
29
44
run : |
30
- composer update --no-interaction --prefer-stable
45
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
46
+ composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest
47
+
31
48
- name : Run tests
32
49
run : |
33
50
phpunit --coverage-text --coverage-clover=coverage.xml
51
+
34
52
- uses : codecov/codecov-action@v1
35
53
with :
36
54
fail_ci_if_error : false
You can’t perform that action at this time.
0 commit comments