Skip to content

Commit 81b9952

Browse files
authored
Merge pull request #329 from driessamyn/fix/sonar-coverage-path
fix: use absolute path for Sonar coverage report
2 parents 5c105e1 + 669fc30 commit 81b9952

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/analysis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
8686
run: >-
8787
./gradlew sonar
88+
-Dsonar.coverage.jacoco.xmlReportPaths=${{ github.workspace }}/build/reports/kover/report.xml
8889
-Dsonar.pullrequest.key=${{ steps.pr.outputs.number }}
8990
-Dsonar.pullrequest.branch=${{ steps.pr.outputs.branch }}
9091
-Dsonar.pullrequest.base=${{ steps.pr.outputs.base }}
@@ -93,7 +94,9 @@ jobs:
9394
if: github.event.workflow_run.event == 'push'
9495
env:
9596
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
96-
run: ./gradlew sonar
97+
run: >-
98+
./gradlew sonar
99+
-Dsonar.coverage.jacoco.xmlReportPaths=${{ github.workspace }}/build/reports/kover/report.xml
97100
98101
coverage-comment:
99102
name: Coverage PR Comment

0 commit comments

Comments
 (0)