From 00628e980fce5fe2b21d15a7f2bc9c7cc73e505a Mon Sep 17 00:00:00 2001 From: xiezhx9 Date: Wed, 25 Sep 2024 12:16:27 +0800 Subject: [PATCH] feat: add codecov plugin --- .github/workflows/java_unit_tests.yml | 4 ++++ README.md | 3 +++ pom.xml | 21 +++++++++++++++++++++ 3 files changed, 28 insertions(+) diff --git a/.github/workflows/java_unit_tests.yml b/.github/workflows/java_unit_tests.yml index fce4571..1bdcc54 100644 --- a/.github/workflows/java_unit_tests.yml +++ b/.github/workflows/java_unit_tests.yml @@ -19,3 +19,7 @@ jobs: distribution: 'temurin' - name: unit tests run: mvn -B clean test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 2520923..c100780 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # bookkeeper-admin-java + +[![codecov](https://codecov.io/gh/protocol-laboratory/bookkeeper-admin-java/branch/main/graph/badge.svg)](https://codecov.io/gh/protocol-laboratory/bookkeeper-admin-java) + This is a Java library that provides an HTTP client built using the built-in HTTP client of the JDK to interact with the Bookkeeper HTTP API. Features: diff --git a/pom.xml b/pom.xml index b469c55..e18d906 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,7 @@ 10.18.0 1.1.22 + 0.8.12 1.18.20.0 3.13.0 3.5.0 @@ -91,6 +92,26 @@ ${src.dir} + + org.jacoco + jacoco-maven-plugin + ${jacoco-maven-plugin.version} + + + prepare-agent + + prepare-agent + + + + report + test + + report + + + + org.apache.maven.plugins maven-enforcer-plugin