From 49fda1844ee9985029f826947c19dbee95760aa4 Mon Sep 17 00:00:00 2001 From: thomasperkins1123 Date: Thu, 9 Apr 2026 09:57:11 +0100 Subject: [PATCH 1/2] Add Sonar to run in CI --- .github/workflows/test.yml | 4 +++- pom.xml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 502bdc8..ca949e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,9 @@ jobs: run: mvn spotless:check - name: Run Unit and Integration Tests - run: mvn install + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + run: mvn install org.sonarsource.scanner.maven:sonar-maven-plugin:sonar release-check: if: github.event_name == 'pull_request' && github.base_ref == 'main' diff --git a/pom.xml b/pom.xml index 0aea7d1..f0f9b88 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,9 @@ limitations under the License. 1.17.0 3.2.1 1.6.0 + diffblue_diffblue-sonar-plugin + diffblue + https://sonarcloud.io From c7f5f12bfb6791cd97b4b9b8429094ae90577d26 Mon Sep 17 00:00:00 2001 From: thomasperkins1123 Date: Thu, 9 Apr 2026 11:15:17 +0100 Subject: [PATCH 2/2] Add jacoco reports --- pom.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pom.xml b/pom.xml index f0f9b88..b6f71df 100644 --- a/pom.xml +++ b/pom.xml @@ -37,6 +37,8 @@ limitations under the License. 1.17.0 3.2.1 1.6.0 + 0.8.12 + target/site/jacoco/jacoco.xml diffblue_diffblue-sonar-plugin diffblue https://sonarcloud.io @@ -89,6 +91,26 @@ limitations under the License. + + org.jacoco + jacoco-maven-plugin + ${jacoco.plugin.version} + + + prepare-agent + + prepare-agent + + + + report + + report + + test + + + org.codehaus.mojo flatten-maven-plugin