From efb99f259e1a03b8db50a89ec155b90ebd69dfeb Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 22 May 2024 17:52:33 +0900 Subject: [PATCH] Github action phpstan temp folder location --- .github/workflows/ci.yml | 4 ++-- phpstan.neon | 2 +- tmp/.gitignore | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 tmp/.gitignore diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 414ddc9..be35977 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: - name: "Restore result cache" uses: actions/cache/restore@v3 with: - path: /tmp/phpstan-codeblocks-dotenv + path: ./tmp/phpstan-codeblocks-dotenv key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}" restore-keys: | result-cache-v1-${{ matrix.php-version }}- @@ -27,7 +27,7 @@ jobs: uses: actions/cache/save@v3 if: always() with: - path: /tmp/phpstan-codeblocks-dotenv + path: ./tmp/phpstan-codeblocks-dotenv key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}" # We need to use phpunit from the self install to get the class paths - name: PHPunit Tests diff --git a/phpstan.neon b/phpstan.neon index f929a2a..f3094c3 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,7 +1,7 @@ # PHP Stan Config parameters: - tmpDir: /tmp/phpstan-codeblocks-dotenv + tmpDir: %currentWorkingDirectory%/tmp/phpstan-codeblocks-dotenv level: max paths: - %currentWorkingDirectory%/src diff --git a/tmp/.gitignore b/tmp/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/tmp/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore