From 45dc0db14911bcbd377278de656ae1d68c3e600a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 3 Jan 2022 18:19:41 +0100 Subject: [PATCH] Fix: Do not cache cache directory for phpstan/phpstan and vimeo/psalm --- .github/workflows/integrate.yaml | 16 +--------------- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 6a74a66c..fe0abaf7 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -166,28 +166,14 @@ jobs: - name: "Create cache directory for phpstan/phpstan" run: "mkdir -p .build/phpstan" - - name: "Cache cache directory for phpstan/phpstan" - uses: "actions/cache@v2.1.7" - with: - path: ".build/phpstan" - key: "php-${{ matrix.php-version }}-phpstan-${{ github.sha }}" - restore-keys: "php-${{ matrix.php-version }}-phpstan-" - - name: "Run phpstan/phpstan" run: "vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1" - 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" diff --git a/Makefile b/Makefile index a3586fe6..19de6700 100644 --- a/Makefile +++ b/Makefile @@ -32,15 +32,19 @@ mutation-tests: vendor ## Runs mutation tests with infection/infection .PHONY: static-code-analysis static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan and vimeo/psalm mkdir -p .build/phpstan + vendor/bin/phpstan clear-result-cache --configuration=phpstan.neon vendor/bin/phpstan analyse --configuration=phpstan.neon --memory-limit=-1 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 phpstan/phpstan and vimeo/psalm mkdir -p .build/phpstan + vendor/bin/phpstan clear-result-cache --configuration=phpstan.neon vendor/bin/phpstan analyze --configuration=phpstan.neon --generate-baseline=phpstan-baseline.neon --memory-limit=-1 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