Skip to content

Commit

Permalink
Restore PHP linters result cache in 'Generate registry' CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Phoen committed Oct 18, 2024
1 parent 14036e5 commit de7b73c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,18 @@ jobs:
- name: Compile generated Java code
run: devbox run gradle build -p generated/java

# See https://phpstan.org/user-guide/result-cache
# See https://psalm.dev/docs/running_psalm/configuration/#cachedirectory
- name: Restore PHP linters cache
uses: actions/cache@v4
with:
path: |
/tmp/phpstan
~/.cache/psalm
key: php-linters-result-cache-${{ matrix.kind_version }}
restore-keys: |
php-linters-result-cache-
- name: Lint generated PHP code with phpstan
run: devbox run phpstan analyze --memory-limit 512M -c .config/ci/php/phpstan.neon

Expand Down

0 comments on commit de7b73c

Please sign in to comment.