From 422511b9615aa903de6f021fe703ede62b472973 Mon Sep 17 00:00:00 2001 From: Eric Mastro Date: Tue, 8 Mar 2022 11:12:06 +1100 Subject: [PATCH] chore: Add codecov yml settings Specify `informational: true` to prevent CI failure with a reduction in code coverage. We are not at a point yet to need this. --- .github/workflows/codecov.yml | 2 +- codecov.yml | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 5a6e91f..20e865a 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,4 +1,4 @@ -name: Code Coverage +name: Generate and upload code coverage on: #On push to common branches, this computes the "bases stats" for PRs diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..463bc88 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +coverage: + status: + project: + default: + # advanced settings + + # Prevents PR from being blocked with a reduction in coverage. + # Note, if we want to re-enable this, a `threshold` value can be used + # allow coverage to drop by x% while still posting a success status. + # `informational`: https://docs.codecov.com/docs/commit-status#informational + # `threshold`: https://docs.codecov.com/docs/commit-status#threshold + informational: true