Skip to content

Commit

Permalink
ci: try sonar-scanner
Browse files Browse the repository at this point in the history
Signed-off-by: BAStos525 <[email protected]>
  • Loading branch information
BAStos525 committed Nov 8, 2024
1 parent 496b1f2 commit cd016d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/iroha2-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
${{ runner.os }}-gradle-
- name: Build with Gradle & Sonarqube analysis
run: ./gradlew build test testCoverage sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }} --info
- name: Show dirs
run: |
ls /home/vzyabkin/actions-runner/_work/iroha-java/iroha-java/modules/client/build/reports/testCoverage
cat /home/vzyabkin/actions-runner/_work/iroha-java/iroha-java/modules/client/build/reports/testCoverage/testCoverage.xml
tree /home/vzyabkin/actions-runner/_work/iroha-java/iroha-java/modules/
- name: DefectDojo
if: always()
uses: C4tWithShell/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ subprojects {
}
property "sonar.java.test.binaries", "${project.projectDir}/build/test-results/test/binary"
property "sonar.junit.reportPaths", "${project.projectDir}/build/test-results/test/"
property "sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/testCoverage/*.xml"
property "sonar.coverage.jacoco.xmlReportPaths", "${project.buildDir}/reports/testCoverage/testCoverage.xml"
}
}
}
Expand Down

0 comments on commit cd016d3

Please sign in to comment.