Skip to content

Commit

Permalink
chore: add cache actions for yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Aug 15, 2020
1 parent 3d1e4c3 commit 771e85b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -10,6 +10,15 @@ jobs:
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta
- 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
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 All @@ -28,6 +37,15 @@ jobs:
uses: actions/checkout@v2
- name: Use Node.js latest
uses: actions/setup-node@v2-beta # Build Babel on latest node versions
- 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
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Build
run: |
BABEL_ENV=test-legacy make -j bootstrap
Expand Down

0 comments on commit 771e85b

Please sign in to comment.