-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (35 loc) · 1006 Bytes
/
ci.yml
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: Integration
on:
pull_request:
paths:
- '**.ts'
- '**.js'
- 'yarn.lock'
- '.github/workflows/ci.yml'
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup nodejs
uses: actions/setup-node@v1
with:
node-version: 16.x
- run: npm install -g yarn
- run: yarn install
- run: yarn lint
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: setup nodejs
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: yarn install
- run: yarn unitTest