File tree Expand file tree Collapse file tree 1 file changed +21
-3
lines changed
Expand file tree Collapse file tree 1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 1313jobs :
1414 build :
1515 runs-on : ubuntu-latest
16+
1617 strategy :
1718 matrix :
1819 php : ['7.2', '7.3', '7.4']
19- name : PHP ${{ matrix.php }}
20+ laravel : ['6.*', '7.*', '8.*']
21+ prefer : ['prefer-lowest', 'prefer-stable']
22+ include :
23+ - laravel : ' 6.*'
24+ testbench : ' 4.*'
25+ - laravel : ' 7.*'
26+ testbench : ' 5.*'
27+ - laravel : ' 8.*'
28+ testbench : ' 6.*'
29+
30+ name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} --${{ matrix.prefer }}
31+
2032 steps :
2133 - uses : actions/checkout@v1
34+
2235 - uses : actions/cache@v1
36+
2337 name : Cache dependencies
2438 with :
2539 path : ~/.composer/cache/files
26- key : composer-php-${{ matrix.php }}-${{ hashFiles('composer.json') }}
40+ key : composer-php-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.prefer }}-${{ hashFiles('composer.json') }}
41+
2742 - name : Install dependencies
2843 run : |
29- composer update --no-interaction --prefer-stable
44+ composer require "illuminate/database:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "orchestra/database:${{ matrix.testbench }}" --no-interaction --no-update
45+ composer update --${{ matrix.prefer }} --prefer-dist --no-interaction --no-suggest
46+
3047 - name : Run tests
3148 run : |
3249 CACHE_DRIVER=array phpunit --coverage-text --coverage-clover=coverage_array.xml
3350 CACHE_DRIVER=file phpunit --coverage-text --coverage-clover=coverage_file.xml
51+
3452 - uses : codecov/codecov-action@v1
3553 with :
3654 fail_ci_if_error : false
You can’t perform that action at this time.
0 commit comments