Skip to content

Commit 82d552a

Browse files
Based on what I read you can use composer.json for cache key
1 parent 0e162f3 commit 82d552a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/cache@v4
2525
with:
2626
path: /tmp/composer-cache
27-
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
27+
key: ${{ runner.os }}-${{ hashFiles('**/composer.json') }}
2828

2929
- name: Install dependencies
3030
run: composer install

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/cache@v4
3030
with:
3131
path: /tmp/composer-cache
32-
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
32+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
3333

3434
- name: Install dependencies
3535
run: composer install

0 commit comments

Comments
 (0)