From da0e38e29aaca96a5194bd838287e4a62c2f179f Mon Sep 17 00:00:00 2001 From: goodliu Date: Wed, 1 Nov 2023 14:28:33 +0800 Subject: [PATCH] workflow: add coverage check configuration (#114) --- .github/codecov.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/codecov.yaml diff --git a/.github/codecov.yaml b/.github/codecov.yaml new file mode 100644 index 0000000..2550cad --- /dev/null +++ b/.github/codecov.yaml @@ -0,0 +1,12 @@ +coverage: # https://docs.codecov.com/docs/codecovyml-reference#coverage + precision: 5 + range: + - 85.0 + - 90.0 + status: + project: + default: + branches: + - ^main$ + target: 85.0 # the minimum coverage ratio that the commit must meet to be considered a success. + threshold: 1% # allow the coverage to drop by X%, and posting a success status.