Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use phpstan result cache #3163

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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