-
Notifications
You must be signed in to change notification settings - Fork 381
43 lines (39 loc) · 1.02 KB
/
codecov.yml
File metadata and controls
43 lines (39 loc) · 1.02 KB
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: codecov
on:
pull_request:
push:
branches:
- master
- release/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
codecov:
name: codecov
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.25
- uses: actions/checkout@v4
with:
submodules: true
- id: changed-files
uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c # v46.0.5
with:
files: |
**/*.go
go.mod
go.sum
- name: test
run: COVERAGE=coverage.txt make test
if: steps.changed-files.outputs.any_changed == 'true'
# - name: Upload coverage report
# uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage.txt
# flags: unittests
# fail_ci_if_error: true