diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 08b0e3b51..98c75bde9 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -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 }}" \ No newline at end of file diff --git a/.phpstan.neon b/.phpstan.neon index 583c43ddc..9cef1e7f4 100644 --- a/.phpstan.neon +++ b/.phpstan.neon @@ -59,3 +59,4 @@ parameters: treatPhpDocTypesAsCertain: false typeAliases: Cm_RedisSession_Model_Session: 'Mage_Core_Model_Resource_Session' + tmpDir: var \ No newline at end of file