Skip to content

Commit 185ea69

Browse files
committed
Add GitHub Actions CI Workflow
1 parent 37f7376 commit 185ea69

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Node.js CI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
node-version: [14.x, 16.x]
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Use Node.js ${{ matrix.node-version }}
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: ${{ matrix.node-version }}
16+
- name: Install dependencies
17+
run: npm ci
18+
- name: Lint
19+
run: npm run lint
20+
- name: Test
21+
run: npm run test -- --coverage --verbose --ci
22+
- name: Build
23+
run: npm run build
24+
- name: Upload coverage to Codecov
25+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)