Skip to content

Commit bdb8039

Browse files
authored
Merge pull request #27 from weirdan/github-actions
Cache Psalm cache
2 parents b8393eb + bf9759f commit bdb8039

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ jobs:
3737
restore-keys: |
3838
${{ runner.os }}-composer-
3939
40+
# the way cache keys are set up will always cause a cache miss
41+
# but will restore the cache generated during the previous run
42+
# based on partial match
43+
- name: Retrieve Psalm's cache
44+
uses: actions/cache@v2
45+
with:
46+
# we really need a way for Psalm to tell where cache is located
47+
path: |
48+
~/.cache/psalm
49+
key: ${{ runner.os }}-psalm-${{ github.sha }}
50+
restore-keys: |
51+
${{ runner.os }}-psalm-
52+
4053
- name: Install composer dependencies
4154
run: composer update --prefer-dist
4255
env:

0 commit comments

Comments
 (0)