11name : tests
22
33on :
4- # Run action on every push and PR
54 push :
65 pull_request :
7-
8- # Run action at midnight to test against any updated dependencies
96 schedule :
107 - cron : " 0 0 * * *"
118
129jobs :
1310 tests :
14- runs-on : ${{ matrix.os }}
11+ runs-on : ubuntu-latest
12+
1513 strategy :
1614 fail-fast : true
1715 matrix :
18- os : [ubuntu-latest]
19- php : [8.0, 7.4, 7.3, 7.2]
20- laravel : [6.*, 7.*, 8.*]
21- dependency-version : [prefer-lowest, prefer-stable]
22- include :
23- - laravel : 8.*
24- testbench : 6.*
25- - laravel : 7.*
26- testbench : 5.*
27- - laravel : 6.*
28- testbench : 4.*
16+ php : [7.2, 7.3, 7.4, 8.0]
17+ laravel : [^6.0, ^7.0, ^8.0]
18+ exclude :
19+ - php : 7.2
20+ laravel : ^8.0
2921
30- name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
22+ name : P${{ matrix.php }} - L${{ matrix.laravel }}
3123
3224 steps :
3325 - name : Checkout code
@@ -37,18 +29,13 @@ jobs:
3729 uses : shivammathur/setup-php@v2
3830 with :
3931 php-version : ${{ matrix.php }}
40- extensions : curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
32+ extensions : dom, curl, libxml, mbstring, zip
33+ tools : composer:v2
4134 coverage : none
4235
4336 - name : Install dependencies
4437 run : |
45- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
46- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
47-
48- - name : Setup Problem Matches
49- run : |
50- echo "::add-matcher::${{ runner.tool_cache }}/php.json"
51- echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
52-
38+ composer require "illuminate/contracts=${{ matrix.laravel }}" --no-update
39+ composer update --prefer-dist --no-interaction --no-progress
5340 - name : Execute tests
54- run : vendor/bin/phpunit
41+ run : vendor/bin/phpunit --verbose
0 commit comments