Skip to content

Commit dfd8f15

Browse files
committed
feat: add CI
1 parent a72699c commit dfd8f15

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Continuous Integration
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- release/*
8+
push:
9+
branches:
10+
- main
11+
- release/*
12+
13+
jobs:
14+
build:
15+
name: Build
16+
timeout-minutes: 20
17+
runs-on: ${{ matrix.os }}
18+
continue-on-error: ${{ matrix.experimental }}
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
node_version:
23+
- 16.13.0
24+
os:
25+
- ubuntu-20.04
26+
experimental: [false]
27+
steps:
28+
- uses: actions/[email protected]
29+
with:
30+
submodules: true
31+
- name: Node ${{ matrix.node_version }} - x64 on ${{ matrix.os }}
32+
uses: actions/[email protected]
33+
with:
34+
node-version: ${{ matrix.node_version }}
35+
- uses: actions/[email protected]
36+
with:
37+
path: ~/.npm
38+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
39+
restore-keys: |
40+
${{ runner.os }}-node-
41+
- name: Install dependencies
42+
run: npm ci
43+
- name: Run lint and unit tests
44+
run: |
45+
npm run lint
46+
npm run build
47+
npm run test
48+
npm run cov

0 commit comments

Comments
 (0)