Skip to content

Commit

Permalink
ci: add flags when uploading coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhuizuo committed Nov 14, 2023
1 parent 31d59b7 commit fbc7d93
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,12 @@ ignore:
- "session/testutil.go"
- "store/mockstore/unistore/testutil.go"

flag_management:
default_rules: # the rules that will be followed for any flag added, generally
carryforward: true
statuses:
- type: project
target: auto
threshold: 1%
- type: patch
target: 50%
4 changes: 4 additions & 0 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ jobs:
run: go test -covermode=atomic -coverprofile=coverage.out -v ./config/... ./metrics/...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: unit,integration
verbose: true

0 comments on commit fbc7d93

Please sign in to comment.