Skip to content

Commit cb25d28

Browse files
committed
add actions
1 parent 72a6e38 commit cb25d28

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Node CI
2+
on: [push]
3+
jobs:
4+
test:
5+
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
node_version: ['8', '10', '12']
10+
os: [ubuntu-latest]
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Use Node.js ${{ matrix.node_version }}
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: ${{ matrix.node_version }}
17+
18+
- name: npm install, build and test
19+
run: |
20+
npm install
21+
npm run test

0 commit comments

Comments
 (0)