From 6610c1f730f1dffa3791b7b1227abd36b221c141 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..32e57c4 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