Skip to content

Commit 7ce07ee

Browse files
committed
Use GitHub Actions for CI
1 parent d3742e1 commit 7ce07ee

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest, macos-latest, windows-latest]
12+
node-version: [6.x, 8.x, 10.x, 12.x]
13+
14+
runs-on: ${{ matrix.os }}
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
24+
- name: Print Node.js Version
25+
run: node --version
26+
27+
- name: Install Dependencies
28+
run: npm install
29+
env:
30+
CI: true
31+
32+
- name: Run "build" step
33+
run: npm run build --if-present
34+
env:
35+
CI: true
36+
37+
- name: Run tests
38+
run: npm test
39+
env:
40+
CI: true

0 commit comments

Comments
 (0)