1010 fail-fast : false
1111 matrix :
1212 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"]
1414 dependency-version : [prefer-lowest, prefer-stable]
1515 include :
16+ - laravel : ^12.0
17+ testbench : 10.*
1618 - laravel : ^11.0
1719 testbench : 9.*
1820 - laravel : ^10.0
@@ -22,26 +24,42 @@ jobs:
2224 - laravel : ^8.12
2325 testbench : ^6.23
2426 exclude :
25- - laravel : ^10.0
26- php : 8.0
2727 - laravel : ^8.12
2828 php : 8.3
29+ - laravel : ^10.0
30+ php : 8.0
2931 - laravel : ^11.0
30- php : 8.1
32+ php : 8.0
3133 - laravel : ^11.0
34+ php : 8.1
35+ - laravel : ^12.0
3236 php : 8.0
37+ - laravel : ^12.0
38+ php : 8.1
3339
3440 name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
3541
3642 steps :
3743 - name : Checkout code
3844 uses : actions/checkout@v4
3945
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
4252 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') }}
4563
4664 - name : Setup PHP
4765 uses : shivammathur/setup-php@v2
0 commit comments