Skip to content

Commit

Permalink
ci(GitHub): call printKotlinSourceSetsGraph in the check-main phase…
Browse files Browse the repository at this point in the history
… of `build` workflow

Signed-off-by: Artyom Shendrik <[email protected]>
  • Loading branch information
amal committed Dec 24, 2023
1 parent 4355291 commit be688c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:

- name: 'Run check-main'
working-directory: checks/main
run: ./gradlew build assemble check --continue --stacktrace --scan
run: ./gradlew build assemble check printKotlinSourceSetsGraph --continue --stacktrace --scan
env:
GITHUB_DEPENDENCY_GRAPH_ENABLED: false

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*.iml
.fleet/
.idea/
.kotlin/
projectFilesBackup*/

# Gradle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ internal abstract class KotlinSourceSetsReportTask :
var progressiveMode: Boolean by attrs
var targetName: String? by attrs
var platformType: String? by attrs
var isDeprecatedTarget: Boolean by attrs
var isDeprecatedTarget: Boolean? by attrs
}

internal class SourceSetNodeRenderer(showTests: Boolean) : SimpleNodeRenderer(showTests) {
Expand Down Expand Up @@ -269,7 +269,7 @@ internal abstract class KotlinSourceSetsReportTask :
items.add("progressive")
}

val isDeprecatedTarget = node.isDeprecatedTarget
val isDeprecatedTarget = node.isDeprecatedTarget == true
if (isDeprecatedTarget && parent?.isDeprecatedTarget != true) {
hasWarning = true
items.add("deprecated target")
Expand Down

0 comments on commit be688c9

Please sign in to comment.