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