Skip to content

Commit 87c73a7

Browse files
committed
Debug code
1 parent bd8e799 commit 87c73a7

3 files changed

Lines changed: 22 additions & 2 deletions

File tree

.github/workflows/branches-and-prs.main.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
@file:Repository("https://bindings.krzeminski.it/")
2626
@file:DependsOn("actions:checkout___major:[v4,v5-alpha)")
2727
@file:DependsOn("codecov:codecov-action___major:[v5,v6-alpha)")
28+
@file:DependsOn("mxschmitt:action-tmate___major:[v3,v4-alpha)")
2829

2930
import io.github.typesafegithub.workflows.actions.actions.Checkout
3031
import io.github.typesafegithub.workflows.actions.actions.Checkout.FetchDepth
3132
import io.github.typesafegithub.workflows.actions.codecov.CodecovAction
33+
import io.github.typesafegithub.workflows.actions.mxschmitt.ActionTmate
3234
import io.github.typesafegithub.workflows.domain.Concurrency
3335
import io.github.typesafegithub.workflows.domain.RunnerType
3436
import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
@@ -113,6 +115,10 @@ workflow(
113115
additionalJavaVersion = expr(Matrix.javaVersion)
114116
)
115117
)
118+
uses(
119+
action = ActionTmate(),
120+
condition = "${Matrix.operatingSystem} == 'ubuntu-latest' && ${Matrix.variant} == '2.5' && ${Matrix.javaVersion} == '8'"
121+
)
116122
run(
117123
name = "Build Spock",
118124
command = listOf(

.github/workflows/branches-and-prs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ jobs:
105105
with:
106106
additional-java-version: '${{ matrix.java }}'
107107
- id: 'step-2'
108+
uses: 'mxschmitt/action-tmate@v3'
109+
if: 'matrix.os == ''ubuntu-latest'' && matrix.variant == ''2.5'' && matrix.java == ''8'''
110+
- id: 'step-3'
108111
name: 'Build Spock'
109112
env:
110113
DEVELOCITY_ACCESS_KEY: '${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}'
111114
run: './gradlew --stacktrace ghActionsBuild "-Dvariant=${{ matrix.variant }}" "-DjavaVersion=${{ matrix.java }}"'
112-
- id: 'step-3'
115+
- id: 'step-4'
113116
name: 'Upload to Codecov.io'
114117
uses: 'codecov/codecov-action@v5'
115118
with:

build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ tasks.register("codeCoverageReport", JacocoReport) {
211211
}
212212

213213
if (gradle.startParameter.taskNames == ["ghActionsBuild"]) {
214-
gradle.startParameter.taskNames = ["build", "preprocessWorkflows", "codeCoverageReport"]
214+
gradle.startParameter.taskNames = ["build", "preprocessWorkflows", "foo", "codeCoverageReport"]
215215
}
216216

217217
if (gradle.startParameter.taskNames == ["ghActionsPublish"] || gradle.startParameter.taskNames == ["ghActionsDocs"]) {
@@ -441,3 +441,14 @@ tasks.preprocessReleaseWorkflow {
441441
outputs.file(preprocessReleaseWorkflowCodecovOutput).withPropertyName('codecovConfig')
442442
finalizedBy(copyCodecovConfig)
443443
}
444+
445+
allprojects { tasks.all {} }
446+
tasks.register('foo') {
447+
doLast {
448+
allprojects*.tasks*.all { task ->
449+
outputs.files.files.findAll { it.absolutePath.contains('.github') }.each {
450+
println("FOO: ${task.name} | ${it.absolutePath}")
451+
}
452+
}
453+
}
454+
}

0 commit comments

Comments
 (0)