summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-11 05:38:51 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-11 05:38:51 +0000
commit5c941e663df8a9b9273f0cdf7803db70078ab56d (patch)
treea75676de872e2182a6363a506aab3fa0097734ca /.github
parent4c73941607dae8d12e3b555cda9d46cf11563779 (diff)
Cache PHPStan results, drop 'parallel.maximumNumberOfProcesses' param.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/php-code-quality.yml18
1 files changed, 18 insertions, 0 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