-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (43 loc) · 988 Bytes
/
ci.yaml
File metadata and controls
45 lines (43 loc) · 988 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Continuous Integration
on:
pull_request:
branches:
- main
- release/*
push:
branches:
- main
- release/*
jobs:
build:
name: Build
timeout-minutes: 20
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-20.04
experimental: [false]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm ci
- name: Run lint and unit tests
run: |
npm run lint
npm run build
npm run test
npm run coverage