File tree 1 file changed +21
-10
lines changed 1 file changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -2,29 +2,37 @@ name: run-tests
2
2
3
3
on :
4
4
push :
5
- branches : [master]
6
- pull_request :
7
- branches : [master]
5
+ paths :
6
+ - ' **.php'
7
+ - ' .github/workflows/run-tests.yml'
8
+ - ' phpunit.xml.dist'
9
+ - ' composer.json'
10
+ - ' composer.lock'
8
11
9
12
jobs :
10
13
test :
11
14
runs-on : ${{ matrix.os }}
15
+ timeout-minutes : 5
12
16
strategy :
13
17
fail-fast : true
14
18
matrix :
15
- os : [ubuntu-latest, windows-latest ]
16
- php : [8.1, 8.2 ]
17
- laravel : [10.*]
18
- stability : [prefer-lowest, prefer- stable]
19
+ os : [ubuntu-latest]
20
+ php : [8.3 ]
21
+ laravel : [11.*, 10.*]
22
+ stability : [prefer-stable]
19
23
include :
24
+ - laravel : 11.*
25
+ testbench : 9.*`
26
+ carbon : ^2.63
20
27
- laravel : 10.*
21
28
testbench : 8.*
29
+ carbon : ^2.63
22
30
23
31
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
24
32
25
33
steps :
26
34
- name : Checkout code
27
- uses : actions/checkout@v3
35
+ uses : actions/checkout@v4
28
36
29
37
- name : Setup PHP
30
38
uses : shivammathur/setup-php@v2
40
48
41
49
- name : Install dependencies
42
50
run : |
43
- composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
51
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
44
52
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
45
53
54
+ - name : List Installed Dependencies
55
+ run : composer show -D
56
+
46
57
- name : Execute tests
47
- run : vendor/bin/pest
58
+ run : vendor/bin/pest --ci
You can’t perform that action at this time.
0 commit comments