mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Optimize composer caching
Previously our composer package cache would not be updated because we had no `composer.lock` (which hash is used as part of the cache key). Generating `composer.lock` (but not installing packages) before we check the cache fixes this.
This commit is contained in:
parent
f48b79063c
commit
08add38449
4
.github/workflows/bcc.yml
vendored
4
.github/workflows/bcc.yml
vendored
@ -23,6 +23,10 @@ jobs:
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate composer.lock
|
||||
run: |
|
||||
composer update --no-install
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
4
.github/workflows/build-phar.yml
vendored
4
.github/workflows/build-phar.yml
vendored
@ -52,6 +52,10 @@ jobs:
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate composer.lock
|
||||
run: |
|
||||
composer update --no-install
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -24,6 +24,10 @@ jobs:
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate composer.lock
|
||||
run: |
|
||||
composer update --no-install
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -97,6 +101,10 @@ jobs:
|
||||
echo "files_cache=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate composer.lock
|
||||
run: |
|
||||
composer update --no-install
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
4
.github/workflows/windows-ci.yml
vendored
4
.github/workflows/windows-ci.yml
vendored
@ -69,6 +69,10 @@ jobs:
|
||||
echo "vcs_cache=$(composer config cache-vcs-dir)" >> $GITHUB_OUTPUT
|
||||
shell: bash
|
||||
|
||||
- name: Generate composer.lock
|
||||
run: |
|
||||
composer update --no-install
|
||||
|
||||
- name: Cache composer cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user