Skip to content

Commit

Permalink
Merge pull request #15480 from oscard0m/add-cache-to-node-workflows
Browse files Browse the repository at this point in the history
Build: Update Yarn cache setup in GitHub Actions workflow
  • Loading branch information
gaetanmaisse committed Jul 5, 2021
2 parents 818ea94 + 40c5f66 commit 606327e
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/tests-unit.yml
Expand Up @@ -7,19 +7,15 @@ jobs:
name: Core Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: actions/checkout@v2
- name: Cache node modules
uses: actions/cache@v2
with:
path: node_modules
key: yarn-2-cache-v1-${{ hashFiles('**/yarn.lock') }}
- name: install, bootstrap
run: |
yarn install --immutable
yarn bootstrap --core
- name: test
run: |
yarn test --runInBand --ci
- uses: actions/setup-node@v1
with:
node-version: "12.x"
cache: yarn
- uses: actions/checkout@v2
- name: install, bootstrap
run: |
yarn install --immutable
yarn bootstrap --core
- name: test
run: |
yarn test --runInBand --ci

0 comments on commit 606327e

Please sign in to comment.