From 0ede0cb4e5a02ea35b5a4f44b681fbd994b7505b Mon Sep 17 00:00:00 2001 From: Martin Gaievski Date: Tue, 5 Nov 2024 16:33:50 -0800 Subject: [PATCH] Fix code coverage report Signed-off-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 96c52928d..48fedeecf 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