diff options
| -rw-r--r-- | .github/workflows/php-code-quality.yml | 18 | ||||
| -rw-r--r-- | phpstan.neon | 2 |
2 files changed, 18 insertions, 2 deletions
diff --git a/.github/workflows/php-code-quality.yml b/.github/workflows/php-code-quality.yml index 5e1f7c2d7..6be750081 100644 --- a/.github/workflows/php-code-quality.yml +++ b/.github/workflows/php-code-quality.yml @@ -37,9 +37,27 @@ jobs: # PHPUnit is installed to support PHPStan checking tests/ tools: phpstan/phpstan:2.1.31, phpunit/phpunit:9.6.29 + # https://phpstan.org/user-guide/result-cache + - name: Restore result cache + uses: actions/cache/restore@v4 + with: + path: .phpstan-tmp + key: phpstan-result-cache-${{ github.run_id }} + restore-keys: | + phpstan-result-cache- + - name: Run PHPStan run: phpstan analyze --no-progress + # https://phpstan.org/user-guide/result-cache + - name: Save result cache + uses: actions/cache/save@v4 + if: ${{ !cancelled() }} + with: + # same as in phpstan.neon + path: .phpstan-tmp + key: phpstan-result-cache-${{ github.run_id }} + phpunit: name: PHPUnit runs-on: ubuntu-latest diff --git a/phpstan.neon b/phpstan.neon index 5bd18c58d..fb6625bb7 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,8 +1,6 @@ parameters: level: 6 tmpDir: .phpstan-tmp - parallel: - maximumNumberOfProcesses: 4 reportUnmatchedIgnoredErrors: false ignoreErrors: # set_include_path detection issue |