From 680843da5f55eddb21ecf1c8faf530b02a3cb260 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 6 Nov 2024 09:47:33 -0800 Subject: [PATCH] Fix code coverage report (#975) (#976) Signed-off-by: Martin Gaievski (cherry picked from commit 0316dc41c639e14071125ab91165d62a1cd6899f) Co-authored-by: Martin Gaievski --- .github/workflows/CI.yml | 2 +- codecov.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a3cb16721..4566a0c71 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -51,7 +51,7 @@ jobs: su `id -un 1000` -c "./gradlew check" - name: Upload Coverage Report - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..663ac6c91 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,15 @@ +coverage: + # displays different colors depending on below, between, or above the range + range: 50..90 + status: + project: + enabled: yes + default: + target: auto + # allows 5% coverage reduction without failing + threshold: 5% + patch: yes + changes: yes + +# disable comments in PRs +comment: yes \ No newline at end of file