build: hash composer cache by lockfile instead of composer.json

this ensures a cache refresh when transitive dependencies are updated.
This commit is contained in:
Dylan T 2020-12-20 23:58:37 +00:00 committed by GitHub
parent b0e1317818
commit ff9d013005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ jobs:
path: |
~/.cache/composer/files
~/.cache/composer/vcs
key: "composer-v2-cache-${{ hashFiles('./composer.json') }}"
key: "composer-v2-cache-${{ hashFiles('./composer.lock') }}"
restore-keys: |
composer-v2-cache-