Skip to content

Commit

Permalink
chore: add cache actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 2, 2020
1 parent ae1e40a commit 06b433b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/coverage.yml
Expand Up @@ -12,6 +12,16 @@ jobs:
uses: actions/setup-node@v2-beta
with:
node-version: "*"
- 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 # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Generate coverage report
run: |
make -j test-ci-coverage
Expand Down

0 comments on commit 06b433b

Please sign in to comment.