From 8964ff2d52aa38260834ae010c3bd7c0d5f96fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20L=C3=A4ufer?= Date: Wed, 27 Dec 2023 13:11:36 +0100 Subject: [PATCH] added JaCoCo and integration with Codecov MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Konstantin Läufer --- .github/workflows/main_primechecker.yml | 6 ++++++ pom.xml | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/.github/workflows/main_primechecker.yml b/.github/workflows/main_primechecker.yml index 7b90baa..be576e4 100644 --- a/.github/workflows/main_primechecker.yml +++ b/.github/workflows/main_primechecker.yml @@ -32,6 +32,7 @@ jobs: pushd './${{ env.PACKAGE_DIRECTORY }}' mvn clean package popd + - name: 'Run Azure Functions Action' uses: Azure/functions-action@v1 id: fa @@ -41,3 +42,8 @@ jobs: publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_FB1881EE8A4C49E1B5CDBAB1767BA169 }} package: '${{ env.PACKAGE_DIRECTORY }}' respect-pom-xml: true + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/pom.xml b/pom.xml index 30272f3..66ee293 100644 --- a/pom.xml +++ b/pom.xml @@ -104,6 +104,26 @@ + + org.jacoco + jacoco-maven-plugin + 0.8.11 + + + prepare-agent + + prepare-agent + + + + report + test + + report + + + +