Skip to content

Commit

Permalink
Fix mergeDiktatReports
Browse files Browse the repository at this point in the history
### What's done:
- mustRunAfter instead of dependsOn to allow run `mergeDiktatReports` after failing diktatCheck

It closes #1733
  • Loading branch information
nulls committed Nov 21, 2023
1 parent 15d2ad4 commit 9d13204
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ internal fun Project.configureMergeReportsTask() {

rootMergeSarifReportsTask.configure { reportMergeTask ->
reportMergeTask.input.from(getGitHubActionReporterOutput())
reportMergeTask.dependsOn(diktatCheckTask)
reportMergeTask.mustRunAfter(diktatCheckTask)

Check warning on line 102 in diktat-gradle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/tasks/SarifReportMergeTask.kt

View check run for this annotation

Codecov / codecov/patch

diktat-gradle-plugin/src/main/kotlin/com/saveourtool/diktat/plugin/gradle/tasks/SarifReportMergeTask.kt#L102

Added line #L102 was not covered by tests
}
diktatCheckTask.configure {
it.finalizedBy(rootMergeSarifReportsTask)
Expand Down

0 comments on commit 9d13204

Please sign in to comment.