@@ -3,60 +3,61 @@ name: run-tests
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- test :
7
- runs-on : ${{ matrix.os }}
8
- strategy :
9
- fail-fast : true
10
- matrix :
11
- os : [ubuntu-latest]
12
- php : [7.3, 7.4, 8.0, 8.1]
13
- laravel : [6.*, 7.*, 8.*, 9.*]
14
- dependency-version : [prefer-lowest, prefer-stable]
15
- include :
16
- - laravel : 6.*
17
- testbench : 4.*
18
- - laravel : 7.*
19
- testbench : 5.*
20
- - laravel : 8.*
21
- testbench : 6.*
22
- - laravel : 9.*
23
- testbench : 7.*
24
- exclude :
25
- - php : 8.1
26
- laravel : 6.*
27
- - php : 8.1
28
- laravel : 7.*
29
- - php : 8.1
30
- laravel : 8.*
31
- dependency-version : prefer-lowest
32
- - php : 7.3
33
- laravel : 9.*
34
- - php : 7.4
35
- laravel : 9.*
36
-
37
- name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
38
-
39
- steps :
40
- - name : Checkout code
41
- uses : actions/checkout@v2
42
-
43
- - name : Setup PHP
44
- uses : shivammathur/setup-php@v2
45
- with :
46
- php-version : ${{ matrix.php }}
47
- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
48
- coverage : none
49
- tools : composer:v2
50
-
51
- - name : Setup problem matchers
52
- run : |
53
- echo "::add-matcher::${{ runner.tool_cache }}/php.json"
54
- echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
55
-
56
- - name : Install dependencies
57
- run : |
58
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
59
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
60
-
61
- - name : Execute tests
62
- run : vendor/bin/phpunit
6
+ test :
7
+ runs-on : ${{ matrix.os }}
8
+ strategy :
9
+ fail-fast : true
10
+ matrix :
11
+ os : [ubuntu-latest]
12
+ php : [8.0, 8.1, 8.2]
13
+ laravel : [8.*, 9.*, 10.*]
14
+ dependency-version : [prefer-lowest, prefer-stable]
15
+ include :
16
+ - laravel : 8.*
17
+ testbench : 6.*
18
+ - laravel : 9.*
19
+ testbench : 7.*
20
+ - laravel : 10.*
21
+ testbench : 8.*
22
+ exclude :
23
+ - php : 8.0
24
+ laravel : 10.*
25
+ - php : 8.1
26
+ laravel : 6.*
27
+ - php : 8.1
28
+ laravel : 7.*
29
+ - php : 8.1
30
+ laravel : 8.*
31
+ dependency-version : prefer-lowest
32
+ - php : 8.2
33
+ laravel : 9.*
34
+ dependency-version : prefer-lowest
35
+ - php : 8.2
36
+ laravel : 8.*
37
+
38
+ name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
39
+
40
+ steps :
41
+ - name : Checkout code
42
+ uses : actions/checkout@v2
43
+
44
+ - name : Setup PHP
45
+ uses : shivammathur/setup-php@v2
46
+ with :
47
+ php-version : ${{ matrix.php }}
48
+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
49
+ coverage : none
50
+ tools : composer:v2
51
+
52
+ - name : Setup problem matchers
53
+ run : |
54
+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
55
+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
56
+
57
+ - name : Install dependencies
58
+ run : |
59
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
60
+ composer update --${{ matrix.dependency-version }} --no-interaction
61
+
62
+ - name : Execute tests
63
+ run : vendor/bin/phpunit
0 commit comments