Skip to content

Commit 589e011

Browse files
authored
Update CI workflow
Update node.js.yml to fix Node.js CI build failing
1 parent 08ccd24 commit 589e011

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/node.js.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

44
name: Node.js CI
55

66
on:
77
push:
8-
branches: [ master ]
8+
branches: [ "master" ]
99
pull_request:
10-
branches: [ master ]
10+
branches: [ "master" ]
1111

1212
jobs:
1313
build:
@@ -16,14 +16,16 @@ jobs:
1616

1717
strategy:
1818
matrix:
19-
node-version: [10.x, 12.x, 14.x]
19+
node-version: [12.x, 14.x, 16.x]
20+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2021

2122
steps:
22-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2324
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25+
uses: actions/setup-node@v3
2526
with:
2627
node-version: ${{ matrix.node-version }}
28+
cache: 'npm'
2729
- run: npm ci
2830
- run: npm run build --if-present
2931
- run: npm test

0 commit comments

Comments
 (0)