@@ -3,46 +3,40 @@ name: Tests
33on : [push, pull_request]
44
55jobs :
6- test :
7- runs-on : ${{ matrix.os }}
8- strategy :
9- fail-fast : true
10- matrix :
11- os : [ubuntu-latest, windows-latest]
12- php : [7.3, 7.4]
13- laravel : [6.*, 7.*, 8.*]
14- dependency-version : [prefer-lowest, prefer-stable]
15- include :
16- - laravel : 8.*
17- testbench : 6.*
18- - laravel : 7.*
19- testbench : 5.*
20- - laravel : 6.*
21- testbench : 4.*
22-
23- name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
24-
25- steps :
26- - name : Checkout code
27- uses : actions/checkout@v1
28-
29- - name : Cache dependencies
30- uses : actions/cache@v1
31- with :
32- path : ~/.composer/cache/files
33- key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
34-
35- - name : Setup PHP
36- uses : shivammathur/setup-php@v1
37- with :
38- php-version : ${{ matrix.php }}
39- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
40- coverage : none
41-
42- - name : Install dependencies
43- run : |
44- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
45- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
46-
47- - name : Execute tests
48- run : vendor/bin/phpunit
6+ test :
7+ runs-on : ${{ matrix.os }}
8+ strategy :
9+ fail-fast : true
10+ matrix :
11+ os : [ubuntu-latest, windows-latest]
12+ php : [8.0, 7.4]
13+ laravel : [8.*]
14+ dependency-version : [prefer-lowest, prefer-stable]
15+ include :
16+ - laravel : 8.*
17+ testbench : 6.*
18+
19+ name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
20+
21+ steps :
22+ - name : Checkout code
23+ uses : actions/checkout@v2
24+
25+ - name : Setup PHP
26+ uses : shivammathur/setup-php@v2
27+ with :
28+ php-version : ${{ matrix.php }}
29+ extensions : fileinfo, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
30+ coverage : none
31+
32+ - name : Setup Problem Matches
33+ run : |
34+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
35+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
36+
37+ - name : Install dependencies
38+ run : |
39+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
41+ - name : Execute tests
42+ run : vendor/bin/phpunit
0 commit comments