diff --git a/.github/workflows/run-unit-tests.yml b/.github/workflows/run-unit-tests.yml
index f9a1c94..6e0f71b 100644
--- a/.github/workflows/run-unit-tests.yml
+++ b/.github/workflows/run-unit-tests.yml
@@ -19,6 +19,11 @@ jobs:
java-version: 17
distribution: 'temurin'
cache: 'maven'
- - name: Run unit tests
+ - name: Build and test
+ run: mvn -B verify
+ - name: Sonar Report
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
- mvn test
+ mvn -B org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
diff --git a/pom.xml b/pom.xml
index 0492e90..604a42e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -77,6 +77,16 @@
0.7.0
2.43.0
+ 0.8.12
+
+ oviva-ag
+ https://sonarcloud.io
+ spicegen
+ oviva-ag_spicegen
+ ${project.groupId}_${project.artifactId}
+
+ ${project.build.directory}/site/jacoco-ut/jacoco.xml,${project.build.directory}/site/jacoco-it/jacoco.xml
+
@@ -308,6 +318,11 @@
maven-invoker-plugin
${maven.invoker.plugin.version}
+
+ org.jacoco
+ jacoco-maven-plugin
+ ${jacoco.version}
+
@@ -354,6 +369,55 @@
+
+
+ org.jacoco
+ jacoco-maven-plugin
+
+
+ prepare-agent-ut
+
+ prepare-agent
+
+
+ ${project.build.directory}/jacoco-ut.exec
+
+
+
+ prepare-agent-it
+ pre-integration-test
+
+ prepare-agent
+
+
+ ${project.build.directory}/jacoco-it.exec
+
+
+
+ report-ut
+
+ report
+
+
+ ${project.build.directory}/jacoco-ut.exec
+ ${project.reporting.outputDirectory}/jacoco-ut
+
+
+
+
+ report-it
+ post-integration-test
+
+ report
+
+
+ ${project.build.directory}/jacoco-it.exec
+ ${project.reporting.outputDirectory}/jacoco-it
+
+
+
+
+