-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.13 KB
/
coverage.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
50
51
52
name: Test Coverage
concurrency:
group: CI-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches:
- main
paths:
- src/*
- test/*
- '*.json'
- yarn.lock
tags:
- '!*' # Do not execute on tags
pull_request:
paths:
- '!*.MD'
jobs:
test:
name: Unit tests
runs-on: ubuntu-latest
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: Report 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@v3.0.0
env:
CC_TEST_REPORTER_ID: 9a56fae1b4c4a5b0d19f574acd0a3cc668b6be755551215edf2f94ee0a54864e
with:
coverageCommand: yarn coverage
coverageLocations: ${{github.workspace}}/*.lcov:lcov