Skip to content

Commit 898d9c7

Browse files
committed
Fixed composer cache key in github action
1 parent 68f2fc2 commit 898d9c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ jobs:
3030
uses: actions/cache@v2
3131
with:
3232
path: vendor
33-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
33+
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
3434
restore-keys: |
35-
${{ runner.os }}-php-${{ matrix.php-version }}
35+
${{ runner.os }}-php-${{ matrix.php-version }}-
3636
3737
- name: Install dependencies
3838
if: steps.composer-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)