forked from crypto-org-chain/chain-main
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 848 Bytes
/
codecov.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
name: codecov
on:
pull_request:
push:
branches:
- master
- release/**
jobs:
codecov:
name: codecov
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15.5
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v3
with:
SUFFIX_FILTER: |
.go
.mod
.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- name: test
run: COVERAGE=coverage.txt make test
if: "env.GIT_DIFF != ''"
# - name: Upload coverage report
# uses: codecov/codecov-action@v1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage.txt
# flags: unittests
# fail_ci_if_error: true