Skip to content

Commit

Permalink
PHPStan: added result cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Oct 2, 2024
1 parent 1bda251 commit 1891f88
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,19 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --ignore-platform-req=ext-*

- name: "Restore result cache"
uses: actions/cache/restore@v4
with:
path: var
key: "phpstan-result-cache-${{ runner.os }}-${{ matrix.php-versions }}-${{ github.run_id }}"
restore-keys: phpstan-result-cache-

- name: PHPStan Static Analysis
run: XDEBUG_MODE=off php vendor/bin/phpstan.phar analyze

- name: "Save result cache"
uses: actions/cache/save@v3
if: always()
with:
path: var
key: "phpstan-result-cache-${{ runner.os }}-${{ matrix.php-versions }}-${{ github.run_id }}"
1 change: 1 addition & 0 deletions .phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ parameters:
treatPhpDocTypesAsCertain: false
typeAliases:
Cm_RedisSession_Model_Session: 'Mage_Core_Model_Resource_Session'
tmpDir: var

0 comments on commit 1891f88

Please sign in to comment.