Skip to content

Commit 4fe379b

Browse files
committed
Use PHP version in composer cache
1 parent 49a0862 commit 4fe379b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
uses: actions/cache@v2
3636
with:
3737
path: vendor
38-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.json') }}
38+
key: ${{ runner.os }}-${{ matrix.php-version }}-php-${{ hashFiles('**/composer.json') }}
3939
restore-keys: |
40-
${{ runner.os }}-php-
40+
${{ runner.os }}-${{ matrix.php-version }}-php-
4141
4242
- name: Install dependencies
4343
if: steps.composer-cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)