Skip to content

Commit fc5d39b

Browse files
committed
Fix cache issue on CI
1 parent 1f6af22 commit fc5d39b

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.github/workflows/static-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/cache@v3
3838
with:
3939
path: ${{ steps.composer-cache.outputs.composer_dir }}
40-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
40+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
4141
restore-keys: |
4242
${{ runner.os }}-composer-
4343
@@ -50,7 +50,7 @@ jobs:
5050
uses: actions/cache@v3
5151
with:
5252
path: ./cache/psalm
53-
key: ${{ runner.os }}-psalm-cache-${{ hashFiles('psalm.xml.dist', 'psalm-baseline.xml', './composer.lock') }}
53+
key: ${{ runner.os }}-psalm-cache-${{ hashFiles('psalm.xml.dist', 'psalm-baseline.xml', './composer.json') }}
5454

5555
- name: Run Psalm
5656
run: ./vendor/bin/psalm --find-unused-psalm-suppress --output-format=github --shepherd

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ auth.json
66
.phpunit.cache/
77
.phpunit.result.cache
88

9+
psalm.xml
10+
911
# in case a developer don't have global git ignore
1012
.DS_Store
1113
Thumbs.db

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"scripts": {
6060
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml src",
6161
"phpstan": "vendor/bin/phpstan --level=0 --no-progress analyse --configuration phpstan.neon --memory-limit 2G",
62+
"psalm": "vendor/bin/psalm",
6263
"test": "vendor/bin/phpunit"
6364
}
6465
}
File renamed without changes.

0 commit comments

Comments
 (0)