From a753c3e2aaab29a802c125224f4c018ab1f728d8 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:00:12 +0530 Subject: [PATCH 1/2] Update pr-builder.yml --- .github/workflows/pr-builder.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pr-builder.yml b/.github/workflows/pr-builder.yml index 842879a47..a5891abb5 100644 --- a/.github/workflows/pr-builder.yml +++ b/.github/workflows/pr-builder.yml @@ -38,3 +38,9 @@ jobs: ${{ runner.os }}- - name: Build with Maven run: mvn clean install -U -B + - name: Generate coverage report + run: mvn test jacoco:report + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} From a1216fb4be562767dd8526fdf90a31f53d2f7698 Mon Sep 17 00:00:00 2001 From: asekawa <40081059+asekawa@users.noreply.github.com> Date: Thu, 8 Aug 2024 17:01:43 +0530 Subject: [PATCH 2/2] Update pom.xml --- pom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pom.xml b/pom.xml index 2d8d07436..be138d0bb 100644 --- a/pom.xml +++ b/pom.xml @@ -132,6 +132,11 @@ ${mockito.version} test + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + @@ -242,6 +247,25 @@ false + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + + prepare-agent + + + + report + test + + report + + + +