10
10
fail-fast : false
11
11
matrix :
12
12
php : [8.3, 8.2, 8.1, 8.0]
13
- laravel : ["^11.0", "^10.0", "^9.0", "^8.12"]
13
+ laravel : ["^12.0", "^ 11.0", "^10.0", "^9.0", "^8.12"]
14
14
dependency-version : [prefer-lowest, prefer-stable]
15
15
include :
16
+ - laravel : ^12.0
17
+ testbench : 10.*
16
18
- laravel : ^11.0
17
19
testbench : 9.*
18
20
- laravel : ^10.0
@@ -22,26 +24,42 @@ jobs:
22
24
- laravel : ^8.12
23
25
testbench : ^6.23
24
26
exclude :
25
- - laravel : ^10.0
26
- php : 8.0
27
27
- laravel : ^8.12
28
28
php : 8.3
29
+ - laravel : ^10.0
30
+ php : 8.0
29
31
- laravel : ^11.0
30
- php : 8.1
32
+ php : 8.0
31
33
- laravel : ^11.0
34
+ php : 8.1
35
+ - laravel : ^12.0
32
36
php : 8.0
37
+ - laravel : ^12.0
38
+ php : 8.1
33
39
34
40
name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
35
41
36
42
steps :
37
43
- name : Checkout code
38
44
uses : actions/checkout@v4
39
45
40
- - name : Cache dependencies
41
- uses : actions/cache@v4
46
+ - name : Get Composer Cache Directory
47
+ id : composer-cache
48
+ run : |
49
+ echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
50
+
51
+ - uses : actions/cache@v4
42
52
with :
43
- path : ~/.composer/cache/files
44
- key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
53
+ path : ${{ steps.composer-cache.outputs.dir }}
54
+ key : ${{ runner.os }}-composer-${{ matrix.os }}-php-${{ matrix.php }}-${{ hashFiles('**/composer.lock') }}
55
+ restore-keys : |
56
+ ${{ runner.os }}-composer-
57
+
58
+ # - name: Cache dependencies
59
+ # uses: actions/cache@v4
60
+ # with:
61
+ # path: ~/.composer/cache/files
62
+ # key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
45
63
46
64
- name : Setup PHP
47
65
uses : shivammathur/setup-php@v2
0 commit comments