diff options
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/php-code-quality.yml | 18 |
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 |