Skip to content

Commit

Permalink
try suggestion 8
Browse files Browse the repository at this point in the history
Signed-off-by: BAStos525 <jungle.vas@yandex.ru>
  • Loading branch information
BAStos525 committed Oct 15, 2024
1 parent 384e33a commit 241ae3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/iroha2-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
${{ runner.os }}-gradle-
- name: Build with Gradle
run: |
./gradlew clean build test -Dsonar.token=${{ secrets.SONAR_TOKEN }} sonar
./gradlew build testCoverage sonar -Dsonar.token=${{ secrets.SONAR_TOKEN }}
- name: Upload build reports
if: failure()
uses: actions/upload-artifact@v3
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ subprojects {
// it is disabled by default to publish original version by CI, not a fat jar
tasks.shadowJar.enabled = false

// tasks.named('testCoverage') {
// dependsOn ":${name}:processTestResources"
// }
}

task allShadowJars {
Expand Down Expand Up @@ -137,12 +134,15 @@ test {
dependsOn testCoverage
}

plugins.withType(JacocoPlugin) {
tasks["test"].finalizedBy 'testCoverage'
}

sonar {
properties {
property "sonar.projectKey", "hyperledger:iroha-java"
property "sonar.host.url", "https://sonar.katana.soramitsu.co.jp"
property "sonar.java.coveragePlugin", "jacoco"
property 'sonar.junit.reportPaths', 'build/test-results/test'
}
}

Expand Down

0 comments on commit 241ae3f

Please sign in to comment.