Skip to content

Commit 74ec0fd

Browse files
committed
change cache key
1 parent 62e77a6 commit 74ec0fd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/php.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,17 @@ jobs:
8484
uses: actions/cache@v4
8585
with:
8686
path: vendor
87-
key: ${{ runner.os }}-${{ matrix.php-version }}-php-${{ hashFiles('**/composer.json') }}
88-
restore-keys: |
89-
${{ runner.os }}-${{ matrix.php-version }}-php-
87+
key: ${{ runner.os }}-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.json') }}
9088
- name: Cache test tools
9189
id: test-tools-cache
9290
uses: actions/cache@v4
9391
with:
9492
path: vendor-bin
95-
key: ${{ runner.os }}-${{ matrix.php-version }}-php-${{ hashFiles('**/composer.json') }}
96-
restore-keys: |
97-
${{ runner.os }}-${{ matrix.php-version }}-php-
93+
key: ${{ runner.os }}-${{ matrix.php-version }}-tools-${{ hashFiles('**/composer.json') }}
9894

9995
- name: Install dependencies
10096
id: composer
101-
# if: steps.composer-cache.outputs.cache-hit != 'true' || steps.test-tools-cache.outputs.cache-hit != 'true'
97+
if: steps.composer-cache.outputs.cache-hit != 'true' || steps.test-tools-cache.outputs.cache-hit != 'true'
10298
run: composer install --prefer-dist --no-progress ${{ matrix.composer_args }}
10399

104100
- name: Check Style

0 commit comments

Comments
 (0)