generated from Byndyusoft/node-typescript-template
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (32 loc) · 865 Bytes
/
test.yaml
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
name: test
on:
- push
- pull_request
jobs:
##############################################################################
unit-tests:
runs-on: ${{ matrix.os }}
steps:
- uses: Byndyusoft/node-reusable-workflows/.github/actions/install@master
with:
node-version: ${{ matrix.node }}
- run: yarn run build
- run: yarn run test:cov
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
node:
- lts/*
- current
##############################################################################
lint:
runs-on: ubuntu-latest
steps:
- uses: Byndyusoft/node-reusable-workflows/.github/actions/install@master
with:
node-version: lts/*
- run: yarn run build
- run: yarn run lint