From bf9759f72600d7ccc34d57e7f94d9a5141c36914 Mon Sep 17 00:00:00 2001 From: Bruce Weirdan Date: Tue, 17 Nov 2020 21:56:10 +0200 Subject: [PATCH] Cache Psalm cache --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ceb0b93..9c2edc0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,19 @@ jobs: restore-keys: | ${{ runner.os }}-composer- + # the way cache keys are set up will always cause a cache miss + # but will restore the cache generated during the previous run + # based on partial match + - name: Retrieve Psalm's cache + uses: actions/cache@v2 + with: + # we really need a way for Psalm to tell where cache is located + path: | + ~/.cache/psalm + key: ${{ runner.os }}-psalm-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-psalm- + - name: Install composer dependencies run: composer update --prefer-dist env: