Skip to content

Commit

Permalink
Update sonar.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
melazaar committed Dec 5, 2024
1 parent efd4e1b commit e542136
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e542136

Please sign in to comment.