Skip to content

Commit df2da76

Browse files
committed
feat(library): add prefixes to step names for fallback path
Part of #1765.
1 parent 984db40 commit df2da76

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/yaml/ConsistencyCheckJob.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,26 +63,26 @@ internal fun WorkflowBuilder.consistencyCheckJob(
6363
)
6464
val ifFirstCompilationFails = expr { firstCompilationStep.outcome.neq(Status.Success) }
6565
run(
66-
name = "Start the local server",
66+
name = "[Fallback] Start the local server",
6767
command = "docker run -p 8080:8080 krzema12/github-workflows-kt-jit-binding-server &",
6868
condition = ifFirstCompilationFails,
6969
)
7070
run(
71-
name = "Wait for the server",
71+
name = "[Fallback] Wait for the server",
7272
command =
7373
"curl --head -X GET --retry 60 --retry-all-errors --retry-delay 1 " +
7474
"http://localhost:8080/status",
7575
condition = ifFirstCompilationFails,
7676
)
7777
run(
78-
name = "Replace server URL in script",
78+
name = "[Fallback] Replace server URL in script",
7979
command =
8080
"sed -i -e 's/https:\\/\\/bindings.krzeminski.it/http:\\/\\/localhost:8080/g' " +
8181
sourceFilePath,
8282
condition = ifFirstCompilationFails,
8383
)
8484
run(
85-
name = "Execute script again",
85+
name = "[Fallback] Execute script again",
8686
command = "rm -f '$targetFilePath' && '$sourceFilePath'",
8787
condition = ifFirstCompilationFails,
8888
)

github-workflows-kt/src/test/kotlin/io/github/typesafegithub/workflows/IntegrationTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,19 +285,19 @@ class IntegrationTest :
285285
continue-on-error: true
286286
run: 'rm ''.github/workflows/some_workflow.yaml'' && ''.github/workflows/some_workflow.main.kts'''
287287
- id: 'step-2'
288-
name: 'Start the local server'
288+
name: '[Fallback] Start the local server'
289289
run: 'docker run -p 8080:8080 krzema12/github-workflows-kt-jit-binding-server &'
290290
if: '${'$'}{{ steps.step-1.outcome != ''success'' }}'
291291
- id: 'step-3'
292-
name: 'Wait for the server'
292+
name: '[Fallback] Wait for the server'
293293
run: 'curl --head -X GET --retry 60 --retry-all-errors --retry-delay 1 http://localhost:8080/status'
294294
if: '${'$'}{{ steps.step-1.outcome != ''success'' }}'
295295
- id: 'step-4'
296-
name: 'Replace server URL in script'
296+
name: '[Fallback] Replace server URL in script'
297297
run: 'sed -i -e ''s/https:\/\/bindings.krzeminski.it/http:\/\/localhost:8080/g'' .github/workflows/some_workflow.main.kts'
298298
if: '${'$'}{{ steps.step-1.outcome != ''success'' }}'
299299
- id: 'step-5'
300-
name: 'Execute script again'
300+
name: '[Fallback] Execute script again'
301301
run: 'rm -f ''.github/workflows/some_workflow.yaml'' && ''.github/workflows/some_workflow.main.kts'''
302302
if: '${'$'}{{ steps.step-1.outcome != ''success'' }}'
303303
- id: 'step-6'

0 commit comments

Comments
 (0)