Skip to content

Commit f484af0

Browse files
committed
Enforce coverage via Codecov status
1 parent a9b7e46 commit f484af0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,4 @@ jobs:
5757
with:
5858
token: ${{ secrets.CODECOV_TOKEN }}
5959
files: pkg/contracts/lcov.info
60+
fail_ci_if_error: true

codecov.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto # compare against base branch
6+
threshold: 0.1 # allow up to 0.1 percentage point drop
7+
informational: false
8+
patch:
9+
default:
10+
target: auto
11+
threshold: 0.1
12+
informational: false

0 commit comments

Comments
 (0)