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.*']
20
+ os : [ubuntu-latest]
21
+ php : [8.4, 8.3, 8.2, 8.1, 8.0, 7.4]
22
+ laravel : ['8.*', '9.*', '10.*', '11.*', '12.*']
16
23
dependency-version : [prefer-lowest, prefer-stable]
17
24
exclude :
18
25
- laravel : 10.*
@@ -34,14 +41,16 @@ jobs:
34
41
- laravel : 11.*
35
42
php : 7.4
36
43
include :
44
+ - laravel : 12.*
45
+ testbench : 10.*
46
+ - laravel : 11.*
47
+ testbench : 9.*
37
48
- laravel : 10.*
38
49
testbench : 8.*
39
50
- laravel : 9.*
40
51
testbench : 7.*
41
52
- laravel : 8.*
42
53
testbench : 6.*
43
- - laravel : 11.*
44
- testbench : 9.*
45
54
46
55
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
47
56
@@ -59,14 +68,24 @@ jobs:
59
68
uses : shivammathur/setup-php@v2
60
69
with :
61
70
php-version : ${{ matrix.php }}
62
- extensions : curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv
63
- coverage : pcov
71
+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
72
+ coverage : none
73
+
74
+ - name : Setup problem matchers
75
+ run : |
76
+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
77
+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
64
78
65
79
- name : Install dependencies
66
80
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
81
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
82
+ composer update --${{ matrix.stability }} --prefer-dist --no-interaction
83
+
84
+ - name : Copy .env.example
85
+ run : cp .env.example .env
86
+
87
+ - name : List Installed Dependencies
88
+ run : composer show -D
70
89
71
90
- name : Execute tests
72
- run : vendor/bin/phpunit
91
+ run : vendor/bin/pest --ci
0 commit comments