1
1
name : tests
2
2
3
3
on :
4
- # Run action on every push and PR
5
4
push :
6
5
pull_request :
7
-
8
- # Run action at midnight to test against any updated dependencies
9
6
schedule :
10
7
- cron : " 0 0 * * *"
11
8
12
9
jobs :
13
10
tests :
14
- runs-on : ${{ matrix.os }}
11
+ runs-on : ubuntu-latest
12
+
15
13
strategy :
16
14
fail-fast : true
17
15
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
29
21
30
- name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
22
+ name : P${{ matrix.php }} - L${{ matrix.laravel }}
31
23
32
24
steps :
33
25
- name : Checkout code
@@ -37,18 +29,13 @@ jobs:
37
29
uses : shivammathur/setup-php@v2
38
30
with :
39
31
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
41
34
coverage : none
42
35
43
36
- name : Install dependencies
44
37
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
53
40
- name : Execute tests
54
- run : vendor/bin/phpunit
41
+ run : vendor/bin/phpunit --verbose
0 commit comments