Skip to content

Commit

Permalink
Merge pull request #327 from ergebnis/feature/cache
Browse files Browse the repository at this point in the history
Enhancement: Cache cache directory for phpstan/phpstan
  • Loading branch information
localheinz committed Mar 2, 2020
2 parents 4adb29f + dd76b39 commit 5d36798
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,13 @@ jobs:
- name: "Create cache directory for phpstan/phpstan"
run: "mkdir -p .build/phpstan"

- name: "Cache cache directory for phpstan/phpstan"
uses: "actions/cache@v1"
with:
path: ".build/phpstan"
key: "php-${{ matrix.php-version }}-phpstan-${{ hashFiles('**/composer.lock') }}"
restore-keys: "php-${{ matrix.php-version }}-phpstan-"

- name: "Run phpstan/phpstan"
run: "vendor/bin/phpstan analyse --configuration=phpstan.neon"

Expand Down

0 comments on commit 5d36798

Please sign in to comment.