Skip to content

Commit 405d698

Browse files
authored
Merge pull request #16 from github/gh-ci
Use GitHub CI
2 parents e2bdedc + 04a6b78 commit 405d698

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/nodejs.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Node CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
node-version: [8.x, 10.x, 12.x]
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
- name: npm install, build, and test
23+
run: |
24+
npm install
25+
npm run build --if-present
26+
npm test
27+
env:
28+
CI: true

0 commit comments

Comments
 (0)