Skip to content

Commit 75ab508

Browse files
committed
Do not try to restore Psalm cache on CI
we use thr default directory, outside the repo
1 parent d0a4d25 commit 75ab508

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ jobs:
1818
with:
1919
ref: ${{ github.head_ref }}
2020

21-
# mtime needs to be restored for Psalm cache to work correctly
22-
- name: Restore mtimes
23-
uses: chetan/git-restore-mtime-action@v1
24-
2521
- name: Setup PHP
2622
uses: shivammathur/setup-php@v2
2723
with:
@@ -46,13 +42,5 @@ jobs:
4642
- name: Install composer dependencies
4743
run: "composer install --no-interaction --no-progress --no-scripts"
4844

49-
# the way cache keys are set up will always cause a cache miss
50-
# but will restore the cache generated during the previous run based on partial match
51-
- name: Retrieve Psalm’s cache
52-
uses: actions/cache@v3
53-
with:
54-
path: ./cache/psalm
55-
key: ${{ runner.os }}-psalm-cache-${{ hashFiles('psalm.xml.dist', 'psalm-baseline.xml', './composer.json') }}
56-
5745
- name: Run Psalm
5846
run: ./vendor/bin/psalm --find-unused-psalm-suppress --output-format=github --shepherd

0 commit comments

Comments
 (0)