Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
chore: use built in caching from setup-node action (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Lynch authored Sep 27, 2021
1 parent 23c7234 commit 5309899
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ jobs:

- name: Setup node
uses: guardian/actions-setup-node@main
with:
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: yarn install --frozen-lockfile

- name: Run unit tests
run: 'yarn test --coverage --ci'
Expand All @@ -48,9 +50,11 @@ jobs:

- name: Setup node
uses: guardian/actions-setup-node@main
with:
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: yarn install --frozen-lockfile

- name: Lint files
run: yarn lint
Expand All @@ -64,9 +68,11 @@ jobs:

- name: Setup node
uses: guardian/actions-setup-node@main
with:
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: yarn install --frozen-lockfile

- name: Check types
run: yarn tsc
Expand All @@ -80,9 +86,11 @@ jobs:

- name: Setup node
uses: guardian/actions-setup-node@main
with:
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: yarn install --frozen-lockfile

- name: Build package
run: yarn build
Expand All @@ -107,9 +115,11 @@ jobs:

- name: Setup node
uses: guardian/actions-setup-node@main
with:
cache: 'yarn'

- name: Install dependencies
uses: bahmutov/npm-install@v1
run: yarn install --frozen-lockfile

- name: Fetch build
uses: actions/download-artifact@v2
Expand Down

0 comments on commit 5309899

Please sign in to comment.