Skip to content

Commit 2c4ba1e

Browse files
committed
create node.js.yml
* setup github actions
1 parent bb25bc2 commit 2c4ba1e

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
job1:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [0.10.x, 4.x, 6.x, 8.x, 10.x, 12.x, 14.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm i
24+
- run: npm test
25+
26+
job2:
27+
runs-on: windows-latest
28+
29+
strategy:
30+
matrix:
31+
node-version: [8.x, 12.x]
32+
33+
steps:
34+
- uses: actions/checkout@v2
35+
- name: Use Node.js ${{ matrix.node-version }}
36+
uses: actions/setup-node@v1
37+
with:
38+
node-version: ${{ matrix.node-version }}
39+
- run: npm i
40+
- run: npm test

0 commit comments

Comments
 (0)