From 5c941e663df8a9b9273f0cdf7803db70078ab56d Mon Sep 17 00:00:00 2001 From: supahgreg Date: Sat, 11 Oct 2025 05:38:51 +0000 Subject: Cache PHPStan results, drop 'parallel.maximumNumberOfProcesses' param. --- .github/workflows/php-code-quality.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to '.github') 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 -- cgit v1.2.3-54-g00ecf