Skip to content

Commit

Permalink
Merge pull request storybookjs#15480 from oscard0m/add-cache-to-node-…
Browse files Browse the repository at this point in the history
…workflows

Build: Update Yarn cache setup in GitHub Actions workflow
  • Loading branch information
gaetanmaisse authored 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
Original file line number Diff line number Diff line change
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.