File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : run-tests
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ schedule :
7
+ - cron : " 0 0 * * *"
8
+
9
+ jobs :
10
+ run-tests :
11
+ runs-on : ${{ matrix.os }}
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ os : [ ubuntu-latest ]
16
+ php : [ 8.3, 8.2, 8.1 ]
17
+ laravel : [ 11.*, 10.*, 9.* ]
18
+ dependency-version : [ prefer-stable ]
19
+ include :
20
+ - laravel : 11.*
21
+ testbench : 9.*
22
+ - laravel : 10.*
23
+ testbench : 8.*
24
+ - laravel : 9.*
25
+ testbench : 7.*
26
+ exclude :
27
+ - laravel : 11.*
28
+ php : 8.1
29
+ - laravel : 9.*
30
+ php : 8.3
31
+
32
+ name : ${{ matrix.os }} - P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
33
+
34
+ steps :
35
+ - name : Checkout code
36
+ uses : actions/checkout@v4
37
+
38
+ - name : Cache dependencies
39
+ uses : actions/cache@v4
40
+ with :
41
+ path : ~/.composer/cache/files
42
+ key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
43
+
44
+ - name : Setup PHP
45
+ uses : shivammathur/setup-php@v2
46
+ with :
47
+ php-version : ${{ matrix.php }}
48
+
49
+ - name : Install dependencies
50
+ run : |
51
+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
52
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
53
+
54
+ - name : Execute tests
55
+ run : vendor/bin/phpunit
You can’t perform that action at this time.
0 commit comments