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