Skip to content

Commit

Permalink
Add: codecov configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <zxue@redhat.com>
  • Loading branch information
xuezhaojun committed Jun 5, 2023
1 parent 72d87a2 commit 9082fa8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 9 additions & 0 deletions .github/workflows/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ./cover.out
flags: unit
name: unit
verbose: true
fail_ci_if_error: true

integration:
name: integration
Expand Down

0 comments on commit 9082fa8

Please sign in to comment.