This repository has been archived by the owner on May 4, 2021. It is now read-only.
generated from BloomTech-Labs/template-be
-
Notifications
You must be signed in to change notification settings - Fork 7
/
ci.yml
49 lines (49 loc) · 1.37 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
name: build
on:
push:
branches:
- master
tags:
- '!*' # Do not execute on tags
paths:
- src/*
- test/*
- '*.json'
- yarn.lock
pull_request:
paths:
- '!*.MD'
jobs:
test:
strategy:
matrix:
platform: [ubuntu-latest, macOS-latest]
node: ['12', '10']
name: test/node ${{ matrix.node }}/${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: ${{ matrix.node }}
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- run: yarn test
coverage:
needs: [test]
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: '12'
- run: npm install -g yarn
- run: yarn install
- run: yarn build
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{.env.CC_TEST_REPORTER_ID}}
with:
coverageCommand: yarn coverage