4444 id : node_modules-cache
4545 with :
4646 path : node_modules
47- key : ${{ runner.OS }}-build-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}
47+ key : ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}
4848
4949 - name : Install NPM packages
5050 if : steps.node_modules-cache.outputs.cache-hit != 'true'
@@ -65,16 +65,16 @@ jobs:
6565 id : actions-cache
6666 with :
6767 path : ${{ steps.composer-cache.outputs.dir }}
68- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
68+ key : ${{ runner.os }}-composer-laravel-10-${{ matrix.php-version }}- ${{ hashFiles('**/composer.lock') }}
6969 restore-keys : |
70- ${{ runner.os }}-composer-
70+ ${{ runner.os }}-composer-laravel-10-${{ matrix.php-version }}-
7171
7272 - name : Cache PHP dependencies (vendor)
7373 uses : actions/cache@v4
7474 id : vendor-cache
7575 with :
7676 path : vendor
77- key : ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
77+ key : ${{ runner.os }}-build-laravel-10-${{ matrix.php-version }} -${{ hashFiles('**/composer.lock') }}
7878
7979 - name : Install Laravel Dependencies
8080 if : steps.vendor-cache.outputs.cache-hit != 'true'
@@ -123,7 +123,7 @@ jobs:
123123 strategy :
124124 matrix :
125125 operating-system : [ ubuntu-latest ]
126- php : [ '8.2', '8.3' ]
126+ php : [ '8.2', '8.3', '8.4' ]
127127 dependency-stability : [ 'prefer-stable' ]
128128
129129 laravel : [ '11.*' ]
@@ -147,7 +147,7 @@ jobs:
147147 id : node_modules-cache
148148 with :
149149 path : node_modules
150- key : ${{ runner.OS }}-build-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}
150+ key : ${{ runner.os }}-build-${{ hashFiles('**/package.json') }}-${{ hashFiles('**/package-lock.json') }}
151151
152152 - name : Install NPM packages
153153 if : steps.node_modules-cache.outputs.cache-hit != 'true'
@@ -168,16 +168,16 @@ jobs:
168168 id : actions-cache
169169 with :
170170 path : ${{ steps.composer-cache.outputs.dir }}
171- key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
171+ key : ${{ runner.os }}-composer-laravel-11-${{ matrix.php-version }}- ${{ hashFiles('**/composer.lock') }}
172172 restore-keys : |
173- ${{ runner.os }}-composer-
173+ ${{ runner.os }}-composer-laravel-11-${{ matrix.php-version }}-
174174
175175 - name : Cache PHP dependencies (vendor)
176176 uses : actions/cache@v4
177177 id : vendor-cache
178178 with :
179179 path : vendor
180- key : ${{ runner.OS }}-build-${{ hashFiles('**/composer.lock') }}
180+ key : ${{ runner.os }}-build-laravel-11-${{ matrix.php-version }} -${{ hashFiles('**/composer.lock') }}
181181
182182 - name : Install Laravel Dependencies
183183 if : steps.vendor-cache.outputs.cache-hit != 'true'
0 commit comments