1
1
name : Run Tests - Current
2
2
3
3
on :
4
- - push
5
- - pull_request
4
+ push :
5
+ paths :
6
+ - ' **.php'
7
+ - ' .github/workflows/run-tests.yml'
8
+ - ' phpunit.xml.dist'
9
+ - ' composer.json'
10
+ - ' composer.lock'
6
11
7
12
jobs :
8
13
test :
9
- runs-on : ubuntu-latest
14
+ runs-on : ${{ matrix.os }}
15
+ timeout-minutes : 5
10
16
11
17
strategy :
12
- fail-fast : false
18
+ fail-fast : true
13
19
matrix :
14
- php : [8.3, 8.2, 8.1, 8.0, 7.4]
15
- laravel : ['8.*', '9.*', '10.*', '11.*']
16
- dependency-version : [prefer-lowest, prefer-stable]
17
- exclude :
18
- - laravel : 10.*
19
- php : 8.0
20
- - laravel : 10.*
21
- php : 7.4
22
- - laravel : 9.*
23
- php : 7.4
24
- - laravel : 8.*
25
- php : 8.1
26
- - laravel : 8.*
27
- php : 8.2
28
- - laravel : 8.*
29
- php : 8.3
30
- - laravel : 11.*
31
- php : 8.1
32
- - laravel : 11.*
33
- php : 8.0
34
- - laravel : 11.*
35
- php : 7.4
20
+ os : [ubuntu-latest]
21
+ php : [8.4, 8.3, 8.2]
22
+ laravel : ['11.*', '12.*']
23
+ stability : [prefer-lowest, prefer-stable]
36
24
include :
37
- - laravel : 10.*
38
- testbench : 8.*
39
- - laravel : 9.*
40
- testbench : 7.*
41
- - laravel : 8.*
42
- testbench : 6.*
25
+ - laravel : 12.*
26
+ testbench : 10.*
43
27
- laravel : 11.*
44
28
testbench : 9.*
45
29
@@ -59,14 +43,24 @@ jobs:
59
43
uses : shivammathur/setup-php@v2
60
44
with :
61
45
php-version : ${{ matrix.php }}
62
- extensions : curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
63
- coverage : pcov
46
+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
47
+ coverage : none
48
+
49
+ - name : Setup problem matchers
50
+ run : |
51
+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
52
+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
64
53
65
54
- name : Install dependencies
66
55
run : |
67
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" --no-interaction --no-update
68
- composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
69
- cp .env.example .env
56
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
57
+ composer update --${{ matrix.stability }} --prefer-dist --no-interaction
58
+
59
+ - name : Copy .env.example
60
+ run : cp .env.example .env
61
+
62
+ - name : List Installed Dependencies
63
+ run : composer show -D
70
64
71
65
- name : Execute tests
72
- run : vendor/bin/phpunit
66
+ run : vendor/bin/pest
0 commit comments