File tree Expand file tree Collapse file tree 4 files changed +1114
-664
lines changed
Expand file tree Collapse file tree 4 files changed +1114
-664
lines changed Original file line number Diff line number Diff line change 1+ name : run-tests
2+
3+ on :
4+ push :
5+
6+ jobs :
7+ test :
8+ runs-on : ${{ matrix.os }}
9+ strategy :
10+ matrix :
11+ php : [7.4, 7.3, 7.2]
12+ laravel : [7.*, 6.*]
13+ dependency-version : [prefer-lowest, prefer-stable]
14+ os : [ubuntu-latest]
15+ include :
16+ - laravel : 7.*
17+ testbench : 5.*
18+ - laravel : 6.*
19+ testbench : 4.*
20+
21+ name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
22+
23+ steps :
24+ - name : Checkout code
25+ uses : actions/checkout@v2
26+
27+ - name : Cache dependencies
28+ uses : actions/cache@v1
29+ with :
30+ path : ~/.composer/cache/files
31+ key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
32+
33+ - name : Setup PHP
34+ uses : shivammathur/setup-php@v1
35+ with :
36+ php-version : ${{ matrix.php }}
37+ coverage : none
38+
39+ - name : Install dependencies
40+ run : |
41+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
42+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
43+ - name : Execute tests
44+ run : vendor/bin/phpspec run
Original file line number Diff line number Diff line change 99 }
1010 ],
1111 "require" : {
12- "php" : " ^7.1 " ,
13- "laravel/framework" : " ^5.7.28 | ^6 .0" ,
12+ "php" : " ^7.2 " ,
13+ "laravel/framework" : " ^6.0 | ^7 .0" ,
1414 "pda/pheanstalk" : " ^4.0"
1515 },
1616 "require-dev" : {
17- "phpspec/phpspec" : " ^5 .0"
17+ "phpspec/phpspec" : " ^6 .0"
1818 },
1919 "autoload" : {
2020 "psr-4" : {
You can’t perform that action at this time.
0 commit comments