mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 10:00:11 +00:00
Add: codecov configuration. (#166)
Signed-off-by: xuezhaojun <zxue@redhat.com>
This commit is contained in:
10
.codecov.yml
Normal file
10
.codecov.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
coverage:
|
||||
status:
|
||||
patch: off # disable patch status, https://docs.codecov.com/docs/commit-status#patch-status
|
||||
project:
|
||||
default:
|
||||
target: auto
|
||||
threshold: 1%
|
||||
|
||||
ignore:
|
||||
- "**/*generated*.go"
|
||||
9
.github/workflows/pre.yml
vendored
9
.github/workflows/pre.yml
vendored
@@ -68,6 +68,15 @@ jobs:
|
||||
go-version: ${{ env.GO_VERSION }}
|
||||
- name: unit
|
||||
run: make test
|
||||
- name: report coverage
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_UPLOAD_TOKEN }}
|
||||
files: ./coverage.out
|
||||
flags: unit
|
||||
name: unit
|
||||
verbose: true
|
||||
fail_ci_if_error: true
|
||||
|
||||
integration:
|
||||
name: integration
|
||||
|
||||
Reference in New Issue
Block a user