-
Notifications
You must be signed in to change notification settings - Fork 79
43 lines (40 loc) · 973 Bytes
/
merge.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
38
39
40
41
42
43
name: Merge on master and develop
on:
push:
branches:
- master
- develop
jobs:
build:
name: Build & test with "Node.js v${{ matrix.node-version }}" on "${{ matrix.os }}"
strategy:
fail-fast: false # don't cancel all jobs if some of them failed
matrix:
node-version: [
12,
10
]
os: [
ubuntu-latest,
# windows-latest,
macOS-latest
]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Setup Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Lint
run: yarn lint
- name: Setup tests
run: yarn pretest
- name: Test
run: yarn test:coverage
- name: Cleanup tests
run: yarn posttest