Skip to content

Commit 1b87065

Browse files
committed
ci: add github action
1 parent 8b10312 commit 1b87065

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Diff for: .github/workflows/ci.yml

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

0 commit comments

Comments
 (0)