Skip to content

Commit

Permalink
ci: 👷 add yarn dependency caching
Browse files Browse the repository at this point in the history
  • Loading branch information
ColeWalker committed Sep 13, 2020
1 parent e06834d commit 54c19da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ 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-
- name: install modules
run: yarn
- name: Run tests
Expand Down

0 comments on commit 54c19da

Please sign in to comment.