-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (49 loc) · 1.13 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/codeclimate-action@v2.5.7
env:
CC_TEST_REPORTER_ID: 945dfb58a832d233a3caeb84e3e6d3be212e8c7abcb48117fce63b9adcb43647
with:
coverageCommand: yarn coverage