From 63833546a2b2980e98a42782370e1bd3fd6f3b3e Mon Sep 17 00:00:00 2001 From: Martin Gaievski Date: Wed, 6 Nov 2024 09:22:58 -0800 Subject: [PATCH] Fix code coverage report (#975) Signed-off-by: Martin Gaievski (cherry picked from commit 0316dc41c639e14071125ab91165d62a1cd6899f) --- .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