From 3186aa5eb64ba252993a983165e752a0c532237b Mon Sep 17 00:00:00 2001 From: crossoverJie Date: Sun, 16 Jun 2024 22:53:43 +0800 Subject: [PATCH] [Improve] support jacoco and codecov (#1985) Signed-off-by: tomsun28 Co-authored-by: tomsun28 --- .github/workflows/backend-build-test.yml | 4 ++++ pom.xml | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/backend-build-test.yml b/.github/workflows/backend-build-test.yml index 88bccc6638..5e31c48b5b 100644 --- a/.github/workflows/backend-build-test.yml +++ b/.github/workflows/backend-build-test.yml @@ -49,6 +49,10 @@ jobs: java-version: 17 - name: Build with Maven run: mvn clean -B package -Prelease --file pom.xml + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} - name: Build Image env: IMAGE_PUSH: false diff --git a/pom.xml b/pom.xml index 60a476dda7..0cb8d67aa9 100644 --- a/pom.xml +++ b/pom.xml @@ -138,6 +138,7 @@ 4.4 3.2.1 3.10.0 + 0.8.11 @@ -461,6 +462,25 @@ + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + + prepare-agent + + + + report + test + + report + + + +