diff --git a/.github/workflows/push_ubuntu_build.yml b/.github/workflows/push_ubuntu_build.yml
index 7c261f5..e6ad332 100644
--- a/.github/workflows/push_ubuntu_build.yml
+++ b/.github/workflows/push_ubuntu_build.yml
@@ -19,3 +19,8 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn clean install
+ - name: Upload test coverage to Codecov
+ uses: codecov/codecov-action@v4.0.1
+ with:
+ flags: unit_tests
+ token: ${{ secrets.CODECOV_TOKEN }}
diff --git a/pom.xml b/pom.xml
index 701fbff..1a74274 100644
--- a/pom.xml
+++ b/pom.xml
@@ -98,9 +98,60 @@
${maven.compiler.target}
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.4
+
+
+ default-prepare-agent-by-coverage-enforcer
+
+ prepare-agent
+
+
+ argLine
+
+
+
+ default-report-by-coverage-enforcer
+
+ report
+
+
+ ${project.build.directory}/jacoco.exec
+
+
+
+ default-check-by-coverage-enforcer
+
+ check
+
+
+ ${project.build.directory}/jacoco.exec
+
+
+
+ BUNDLE
+
+
+
+ LINE
+ COVEREDRATIO
+ 0.0
+
+
+
+
+
+
+
+
maven-surefire-plugin
2.22.2
+
+ ${argLine}
+
maven-failsafe-plugin