Skip to content

Commit

Permalink
cache the cache in GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonko Mulder committed Apr 6, 2023
1 parent aa5d222 commit a6da785
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ jobs:
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction

- name: Rector Cache
uses: actions/cache@v3
with:
path: ./.cache/rector
key: ${{ runner.os }}-rector-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-rector-

- name: Run Rector upgrades
run: ./vendor/bin/rector process --no-ansi --no-diffs

Expand Down

0 comments on commit a6da785

Please sign in to comment.