From c69eac3258b8c6eed637418e9d13dd85c5dfded0 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 22 May 2024 18:53:12 +0900 Subject: [PATCH] Move temp folder for phpstan to local, update github actions Note: Github actions are not used right now --- .github/workflows-disabled/ci.yml | 19 ++++++++++++++++++- phpstan.neon | 2 +- tmp/.gitignore | 2 ++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 tmp/.gitignore diff --git a/.github/workflows-disabled/ci.yml b/.github/workflows-disabled/ci.yml index de0337e..9791d21 100644 --- a/.github/workflows-disabled/ci.yml +++ b/.github/workflows-disabled/ci.yml @@ -9,8 +9,25 @@ jobs: steps: - uses: actions/checkout@v4 # - uses: php-actions/composer@v6 - + # env: + # COMPOSER_ROOT_VERSION: dev-master + - name: "Restore result cache" + uses: actions/cache/restore@v4 + with: + path: ./tmp + key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}" + restore-keys: | + result-cache-v1-${{ matrix.php-version }}- - name: PHPStan Static Analysis uses: php-actions/phpstan@v3 with: path: src/ + - name: "Save result cache" + uses: actions/cache/save@v4 + if: always() + with: + path: ./tmp + key: "result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}" + # - name: PHPunit Tests + # run: | + # vendor/bin/phpunit diff --git a/phpstan.neon b/phpstan.neon index 7c0a0eb..20798b5 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,7 +2,7 @@ includes: - phpstan-conditional.php parameters: - tmpDir: /tmp/phpstan-corelibs-composer + tmpDir: %currentWorkingDirectory%/tmp/phpstan-corelibs-composer level: 8 # max is now 9 checkMissingCallableSignature: true treatPhpDocTypesAsCertain: false 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