-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 629 Bytes
/
unit.yml
File metadata and controls
37 lines (31 loc) · 629 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
name: 'Unit Tests'
on:
push:
branches:
- "master"
pull_request:
branches:
- master
jobs:
unit:
name: 'Unit Tests'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node: [14, 16]
steps:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: npm ci
- name: Lint
run: npm run lint
- name: Run Tests
run: npm run build && npm t