From ed999d9522b1fa73d43a0f1663ce78541d810dc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=BF=8A=20SionYang?= Date: Wed, 11 May 2022 16:20:28 +0800 Subject: [PATCH] Add codeCov report after CI finish (#8344) * Try add codecov * Try add codecov * Try scan all jacoco.xml * Try to add all jacoco.xml * Add codecov.yml * Fix copyright check for codecov.yml * Fix copyright check for codecov.yml --- .github/workflows/ci.yml | 4 ++++ codecov.yml | 4 ++++ pom.xml | 1 + 3 files changed, 9 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 368d2f0ad..f6ba539a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,3 +35,7 @@ jobs: run: mvn -Prelease-nacos -Dmaven.test.skip=true clean install -U - name: Test With Maven run: mvn -Prelease-nacos clean test + - name: Codecov + uses: codecov/codecov-action@v3.1.0 + with: + files: ./address/target/site/jacoco/jacoco.xml,./api/target/site/jacoco/jacoco.xml,./auth/target/site/jacoco/jacoco.xml,./client/target/site/jacoco/jacoco.xml,./common/target/site/jacoco/jacoco.xml,./consistency/target/site/jacoco/jacoco.xml,./console/target/site/jacoco/jacoco.xml,./core/target/site/jacoco/jacoco.xml,./naming/target/site/jacoco/jacoco.xml,./plugin-default-impl/target/site/jacoco/jacoco.xml,./plugin/auth/target/site/jacoco/jacoco.xml,./plugin/encryption/target/site/jacoco/jacoco.xml,./sys/target/site/jacoco/jacoco.xml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..1d6261311 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,4 @@ +comment: + behavior: default + layout: reach,diff,flags,files,footer + require_changes: false diff --git a/pom.xml b/pom.xml index 25339b4a1..ff55dd3d1 100644 --- a/pom.xml +++ b/pom.xml @@ -327,6 +327,7 @@ .editorconfig .travis.yml + codecov.yml CONTRIBUTING.md CODE_OF_CONDUCT.md CHANGELOG.md