@@ -3,45 +3,41 @@ name: 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, windows-latest]
12
- php : [7.3, 7.4, 8.0]
13
- laravel : [7.*, 8.*]
14
- dependency-version : [prefer-lowest, prefer-stable]
15
- include :
16
- - laravel : 8.*
17
- testbench : 6.*
18
- - laravel : 7.*
19
- testbench : 5.*
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@v1
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@v2
35
- with :
36
- php-version : ${{ matrix.php }}
37
- extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
38
- coverage : none
39
- ini-values : ' extension=php_fileinfo.dll'
40
-
41
- - name : Install dependencies
42
- run : |
43
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
44
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
45
-
46
- - name : Execute tests
47
- 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.*, 7.*]
14
+ dependency-version : [prefer-lowest, prefer-stable]
15
+ include :
16
+ - laravel : 8.*
17
+ testbench : 6.*
18
+ - laravel : 7.*
19
+ testbench : 5.*
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 : Setup PHP
28
+ uses : shivammathur/setup-php@v2
29
+ with :
30
+ php-version : ${{ matrix.php }}
31
+ extensions : fileinfo, dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
32
+ coverage : none
33
+
34
+ - name : Setup Problem Matches
35
+ run : |
36
+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
37
+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
38
+ - name : Install dependencies
39
+ run : |
40
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
41
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
42
+ - name : Execute tests
43
+ run : vendor/bin/phpunit
0 commit comments