Skip to content

Commit

Permalink
Fix missing code coverage in Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
rashidi committed Dec 21, 2024
1 parent 5244d3e commit dbe0746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew build sonar --info
run: ./gradlew build sonar

asciidoc-build:
# The type of runner that the job will run on
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ sonar {
property "sonar.projectKey", "rashidi_spring-boot-tutorials"
property "sonar.organization", "rashidi-github"
property "sonar.host.url", "https://sonarcloud.io"
property "sonar.coverage.jacoco.xmlReportPaths", "${layout.buildDirectory}/reports/jacoco/testCodeCoverageRport/testCodeCoverageReport.xml"
}
}

Expand Down

0 comments on commit dbe0746

Please sign in to comment.