Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import io.github.typesafegithub.workflows.domain.actions.CustomAction
import io.github.typesafegithub.workflows.domain.triggers.Push
import io.github.typesafegithub.workflows.dsl.workflow
import io.github.typesafegithub.workflows.shared.internal.getGithubAuthTokenOrNull
import io.github.typesafegithub.workflows.yaml.CheckoutActionVersionSource
import io.github.typesafegithub.workflows.yaml.DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG
import io.kotest.common.ExperimentalKotest
import io.kotest.core.spec.style.FunSpec
import io.kotest.engine.spec.tempdir
Expand Down Expand Up @@ -35,6 +37,10 @@ class ReportingTest :
name = "Test workflow",
on = listOf(Push()),
sourceFile = sourceTempFile,
consistencyCheckJobConfig =
DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG.copy(
checkoutActionVersion = CheckoutActionVersionSource.Given("v4"),
),
useWorkflow = { output = function(it) },
) {
job(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public val DEFAULT_CONSISTENCY_CHECK_JOB_CONFIG: ConsistencyCheckJobConfig.Confi
ConsistencyCheckJobConfig.Configuration(
condition = null,
env = emptyMap(),
checkoutActionVersion = CheckoutActionVersionSource.BundledWithLibrary,
checkoutActionVersion = CheckoutActionVersionSource.InferFromClasspath(),
additionalSteps = null,
useLocalBindingsServerAsFallback = false,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class IntegrationTest :
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v6'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/some_workflow.yaml'' && ''.github/workflows/some_workflow.main.kts'''
Expand Down Expand Up @@ -282,7 +282,7 @@ class IntegrationTest :
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v6'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
continue-on-error: true
Expand Down Expand Up @@ -722,7 +722,7 @@ class IntegrationTest :
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v6'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/some_workflow.yaml'' && ''.github/workflows/some_workflow.main.kts'''
Expand Down
Loading