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