diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml
index 9e3e583..08311a1 100644
--- a/.github/workflows/test-ci.yml
+++ b/.github/workflows/test-ci.yml
@@ -20,4 +20,41 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y wget zstd
- name: Build and test estore
- run: mvn -pl estore clean test -Dmaven.compiler.release=8
+ run: mvn -pl estore clean test jacoco:report -Dmaven.compiler.release=8
+
+ - name: Upload JaCoCo report
+ if: always()
+ uses: actions/upload-artifact@v4
+ with:
+ name: jacoco-report
+ path: estore/target/site/jacoco/
+ if-no-files-found: ignore
+
+ - name: Upload coverage data
+ uses: actions/upload-artifact@v4
+ with:
+ name: jacoco-coverage-data
+ path: |
+ estore/target/jacoco.exec
+ estore/target/classes/
+
+ coverage:
+ needs: test
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-java@v4
+ with:
+ distribution: temurin
+ java-version: "8"
+ cache: maven
+
+ - name: Download coverage data
+ uses: actions/download-artifact@v4
+ with:
+ name: jacoco-coverage-data
+ path: .
+
+ - name: Check coverage
+ run: mvn -pl estore jacoco:check -Dmaven.compiler.release=8
diff --git a/estore/pom.xml b/estore/pom.xml
index f47ffa3..15048dd 100644
--- a/estore/pom.xml
+++ b/estore/pom.xml
@@ -119,6 +119,23 @@
org.jacoco
jacoco-maven-plugin
0.8.13
+
+
+ org/estore/antlr4/**
+
+
+
+ BUNDLE
+
+
+ LINE
+ COVEREDRATIO
+ 0.70
+
+
+
+
+
@@ -132,6 +149,13 @@
report
+
+ check
+ verify
+
+ check
+
+