Skip to content

Commit 4094242

Browse files
committed
Add GitHub workflow.
1 parent 1b0e27a commit 4094242

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ source ]
6+
pull_request:
7+
branches: [ source ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [14.x]
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Setup Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
27+
- name: Install dependencies
28+
run: npm i
29+
30+
- name: Run linting
31+
run: npm run lint
32+
33+
- name: Run tests
34+
run: npm run coverage
35+
36+
- name: Upload coverage to Codecov
37+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)