Skip to content

Commit

Permalink
ci(node-ci,percy): Update actions/setup-node to v3 with deps caching.
Browse files Browse the repository at this point in the history
  • Loading branch information
binh-dam-ibigroup committed Sep 19, 2023
1 parent 68f9b31 commit 9df876d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
# This allows us to work with the repository during the lint step
fetch-depth: 2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: '16'
cache: 'yarn'
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
run: yarn
- name: Copy example config
run: cp example-config.yml config.yml
- name: Lint code
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
# This allows us to work with the repository during the lint step
fetch-depth: 2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: '16'
cache: 'yarn'
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
run: yarn
- name: Download OTP2 config file
run: curl $PERCY_OTP2_CONFIG_URL --output /tmp/otp2config.yml
env:
Expand All @@ -44,11 +45,12 @@ jobs:
# This allows us to work with the repository during the lint step
fetch-depth: 2
- name: Use Node.js 16.x
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: '16'
cache: 'yarn'
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
run: yarn
- name: Download OTP2 config file
run: curl $PERCY_OTP2_CONFIG_URL --output /tmp/otp2config.yml
env:
Expand Down

0 comments on commit 9df876d

Please sign in to comment.