Skip to content

Commit

Permalink
Merge pull request #215 from hks-systeme/fix/cache
Browse files Browse the repository at this point in the history
Fix: Do not cache cache directory for `vimeo/psalm`
  • Loading branch information
localheinz committed Feb 7, 2022
2 parents c6fcdf4 + 5aa5c82 commit 41c7582
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/integrate.yaml
Expand Up @@ -211,15 +211,8 @@ jobs:
- name: "Create cache directory for vimeo/psalm"
run: "mkdir -p .build/psalm"

- name: "Cache cache directory for vimeo/psalm"
uses: "actions/cache@v2.1.7"
with:
path: ".build/psalm"
key: "php-${{ matrix.php-version }}-psalm-${{ github.sha }}"
restore-keys: "php-${{ matrix.php-version }}-psalm-"

- name: "Run vimeo/psalm"
run: "vendor/bin/psalm --config=psalm.xml --diff --shepherd --show-info=false --stats --threads=4"
run: "vendor/bin/psalm --config=psalm.xml --shepherd --show-info=false --stats --threads=4"

tests:
name: "Tests"
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Expand Up @@ -24,11 +24,13 @@ help: ## Displays this list of targets with descriptions
.PHONY: static-code-analysis
static-code-analysis: vendor ## Runs a static code analysis with vimeo/psalm
mkdir -p .build/psalm
vendor/bin/psalm --config=psalm.xml --clear-cache
vendor/bin/psalm --config=psalm.xml --diff --show-info=false --stats --threads=4

.PHONY: static-code-analysis-baseline
static-code-analysis-baseline: vendor ## Generates a baseline for static code analysis with vimeo/psalm
mkdir -p .build/psalm
vendor/bin/psalm --config=psalm.xml --clear-cache
vendor/bin/psalm --config=psalm.xml --set-baseline=psalm-baseline.xml

.PHONY: tests
Expand Down

0 comments on commit 41c7582

Please sign in to comment.