From cd016d350f716e3d36b8fc458c7197e8f36e497b Mon Sep 17 00:00:00 2001 From: BAStos525 Date: Fri, 8 Nov 2024 17:25:17 +0300 Subject: [PATCH] ci: try sonar-scanner Signed-off-by: BAStos525 --- .github/workflows/iroha2-pr.yml | 5 +++++ build.gradle | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/iroha2-pr.yml b/.github/workflows/iroha2-pr.yml index 98dc191d..b65a5140 100644 --- a/.github/workflows/iroha2-pr.yml +++ b/.github/workflows/iroha2-pr.yml @@ -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/defectdojo-action@1.0.4 diff --git a/build.gradle b/build.gradle index 2148135a..675cba4b 100644 --- a/build.gradle +++ b/build.gradle @@ -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" } } }