-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (32 loc) · 848 Bytes
/
ci.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
name: Continuous Integration
on: pull_request
jobs:
unit-test:
strategy:
fail-fast: false
matrix:
node:
- 10
- 12
- 14
name: Unit tests w/ Node.js ${{matrix.node}}.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node ${{matrix.node}}.x
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node}}.x
- run: yarn install
- run: yarn test
check-oss:
name: Check Open Source compliance
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '12.16.1'
- run: yarn oss
- run: git diff --exit-code && git diff --cached --exit-code || (echo "Please run 'yarn oss' and commit the result." && exit 1)