From e3fd550bfbe5d68696db4ccad740347e5ba5d8be Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Fri, 6 May 2022 23:12:02 +0000 Subject: [PATCH] add code coverage badge Signed-off-by: Subhobrata Dey --- .codecov.yml | 12 ++++++++++++ .github/workflows/ci.yml | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..e711a04d --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,12 @@ +codecov: + require_ci_to_pass: yes + +coverage: + precision: 2 + round: down + range: "75...100" + status: + project: + default: + target: 75% # the required coverage value + threshold: 1% # the leniency in hitting the target \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e017740..0bcc5e2c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,5 @@ jobs: - name: Upload Coverage Report uses: codecov/codecov-action@v1 with: - file: ./build/reports/jacoco/test/jacocoTestReport.xml - flags: plugin + token: ${{ secrets.CODECOV_TOKEN }}