From 1d049e47db1a74f96000c022c009849446aa468f Mon Sep 17 00:00:00 2001 From: sahandilshan Date: Tue, 23 Jul 2024 11:52:45 +0530 Subject: [PATCH] Add codecov configs --- .github/workflows/pr-builder.yml | 5 +++++ codecov.yml | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 842879a47..7b5fff75f 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -38,3 +38,8 @@ jobs: ${{ runner.os }}- - name: Build with Maven run: mvn clean install -U -B + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..25d8f2001 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,15 @@ +codecov: + require_ci_to_pass: yes + notify: + wait_for_ci: yes +coverage: + status: + project: # checks the effect for the overall code coverage rate of the repository. + default: + enabled: yes + threshold: null + target: auto + patch: # This status indicates the extent of code coverage achieved by the pull request. + default: + target: 80% + threshold: 40% # With a target of 80% and a threshold of 40%, the acceptable coverage range is 40% to 80%.