Skip to content

Commit 19e477e

Browse files
committed
Update GitHub Actions CI
1 parent 82c03a2 commit 19e477e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/nodejs.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Node CI
22

3-
on: [push]
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
48

59
jobs:
610
build:
@@ -9,14 +13,15 @@ jobs:
913

1014
strategy:
1115
matrix:
12-
node-version: [10.x, 12.x]
16+
node-version: [12.x, 16.x]
1317

1418
steps:
15-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v2
1620
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@v2
1822
with:
1923
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
2025
- name: npm install, build, and test
2126
run: |
2227
npm ci

0 commit comments

Comments
 (0)