Skip to content

Commit

Permalink
GithubAction: added phpstan result cache (#3550)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Apr 19, 2020
1 parent 42fa083 commit 4886a65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/push.yml
Expand Up @@ -45,6 +45,7 @@ jobs:
git apply .github/workflows/default.config.yml.github-action.diff
- run: |
php redaxo/src/addons/tests/bin/setup.php
- run: |
vendor/bin/rexlint
php redaxo/bin/console be_style:compile
git checkout -- redaxo/src/core/default.config.yml # revert changes made initially
Expand Down Expand Up @@ -91,6 +92,7 @@ jobs:
php redaxo/bin/console package:install debug
php redaxo/bin/console package:install structure/history
php redaxo/bin/console package:install structure/version
- run: |
vendor/bin/psalm --show-info=false --shepherd --output-format=checkstyle | cs2pr
phpstan-analysis:
Expand Down Expand Up @@ -119,6 +121,11 @@ jobs:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: "PHPStan Cache Result cache"
uses: actions/cache@v1
with:
path: ./tmp
key: "result-cache"
- name: Install Dependencies
run: composer install --prefer-dist
- run: |
Expand All @@ -134,6 +141,7 @@ jobs:
php redaxo/bin/console package:install debug
php redaxo/bin/console package:install structure/history
php redaxo/bin/console package:install structure/version
- run: |
vendor/bin/phpstan analyse --no-progress --error-format=checkstyle | cs2pr
php-cs-fixer:
Expand Down Expand Up @@ -187,4 +195,5 @@ jobs:
git apply .github/workflows/default.config.yml.github-action.diff
- run: |
php redaxo/src/addons/tests/bin/setup.php
- run: |
php redaxo/src/addons/tests/bin/run_tests.php
1 change: 1 addition & 0 deletions phpstan.neon.dist
@@ -1,4 +1,5 @@
parameters:
tmpDir: %rootDir%/tmp # used for result caching
level: 2
paths:
# restrict to core and core addons, ignore other locally installed addons
Expand Down

0 comments on commit 4886a65

Please sign in to comment.