Skip to content

Commit

Permalink
ci: 💚 fix yarn caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeWalker committed Sep 13, 2020
1 parent c08455f commit a6891b0
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: install modules
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn

- name: Run tests
Expand Down

0 comments on commit a6891b0

Please sign in to comment.