From e54213682596ef1b84aea078e44c1d5bfa75f4e5 Mon Sep 17 00:00:00 2001 From: melazaar <56682415+melazaar@users.noreply.github.com> Date: Thu, 5 Dec 2024 18:04:29 +0100 Subject: [PATCH] Update sonar.yml --- .github/workflows/sonar.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 7599e25..12a31ff 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -35,3 +35,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=AntaresSimulatorTeam_antares-datamanager-back -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml + - name: Check if JaCoCo report is generated + run: | + if [ -f target/site/jacoco/jacoco.xml ]; then + echo "JaCoCo report generated successfully." + else + echo "JaCoCo report not found." + fi \ No newline at end of file