Skip to content

Commit

Permalink
ci: use actions/setup-node built in caching
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Nov 29, 2021
1 parent e3ef061 commit 5b1921b
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,8 @@ jobs:
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # renovate: tag=v2
with:
node-version: 16
- name: Restore CI Cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # renovate: tag=v2.1.6
id: cache-restore
with:
path: node_modules
key: ${{ runner.os }}-16-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies if Cache Miss
if: ${{ !steps.cache-restore.outputs.cache-hit }}
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Run ESLint
run: yarn lint --fix=false
Expand All @@ -43,14 +37,8 @@ jobs:
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # renovate: tag=v2
with:
node-version: 16
- name: Restore CI Cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # renovate: tag=v2.1.6
id: cache-restore
with:
path: node_modules
key: ${{ runner.os }}-16-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies if Cache Miss
if: ${{ !steps.cache-restore.outputs.cache-hit }}
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Build Code
run: yarn build
Expand Down Expand Up @@ -81,14 +69,8 @@ jobs:
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c # renovate: tag=v2
with:
node-version: 16
- name: Restore CI Cache
uses: actions/cache@c64c572235d810460d0d6876e9c705ad5002b353 # renovate: tag=v2.1.6
id: cache-restore
with:
path: node_modules
key: ${{ runner.os }}-16-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies if Cache Miss
if: ${{ !steps.cache-restore.outputs.cache-hit }}
cache: yarn
- name: Install Dependencies
run: yarn --immutable
- name: Test
run: yarn test

1 comment on commit 5b1921b

@vercel
Copy link

@vercel vercel bot commented on 5b1921b Nov 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.