From 31d489b1ed1a4457f38dd2d34c63a496d723edd0 Mon Sep 17 00:00:00 2001 From: bilalcaliskan Date: Sat, 8 Jan 2022 12:31:33 +0300 Subject: [PATCH] update codecov.yml --- codecov.yml | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/codecov.yml b/codecov.yml index 564b297..ee106a9 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,13 +1,30 @@ --- +codecov: + require_ci_to_pass: yes + branch: master + +comment: + layout: "reach, diff, flags, files" + behavior: default + +coverage: + range: 50..80 + round: down + precision: 0 + status: + project: + default: + # Set the overall project code coverage requirement to 70% + target: 80 + patch: + default: + # Set the pull request requirement to not regress overall coverage by more than 5% + # and let codecov.io set the goal for the code changed in the patch. + target: auto + threshold: 8 + ignore: - cmd/**/* - main.go - internal/raw/constants.go - -comment: # this is a top-level key - layout: "reach, diff, flags, files" - behavior: default - require_changes: false # if true: only post the comment if coverage changes - require_base: no # [yes :: must have a base report to post] - require_head: yes # [yes :: must have a head report to post]