Skip to content

Commit

Permalink
ci: use phpstan result cache (#3163)
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland authored Feb 1, 2025
1 parent 221da36 commit e53035b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,26 @@ jobs:
restore-keys: |
${{ runner.os }}-php-
- name: Restore PHPStan result cache
if: ${{ needs.changes.outputs.php == 'true' && matrix.check == 'analyse' }}
uses: actions/cache/restore@v4
with:
path: tmp
key: phpstan-result-cache-${{ github.run_id }}
restore-keys: |
phpstan-result-cache-
- name: Run ${{ matrix.check }}
if: ${{ needs.changes.outputs.php == 'true' }}
run: ${{ matrix.command }}

- name: Save PHPStan result cache
if: ${{ needs.changes.outputs.php == 'true' && matrix.check == 'analyse' }}
uses: actions/cache/save@v4
with:
path: tmp
key: phpstan-result-cache-${{ github.run_id }}

node-checks:
needs: [changes, node-setup]
runs-on: ubuntu-22.04
Expand Down
1 change: 1 addition & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ parameters:
- resources/views
- tests
level: 6
tmpDir: tmp
treatPhpDocTypesAsCertain: false
# TODO figure out why github actions phpstan does not find the same
reportUnmatchedIgnoredErrors: false
Expand Down

0 comments on commit e53035b

Please sign in to comment.