Skip to content

feat: experiment with fallback for server #18

feat: experiment with fallback for server

feat: experiment with fallback for server #18

Workflow file for this run

# This file was generated using Kotlin DSL (.github/workflows/test-workflow.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'Test workflow'
on:
push:
branches:
- 'main'
pull_request: {}
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/test-workflow.yaml'' && ''.github/workflows/test-workflow.main.kts'''
- id: 'start-server'
if: "always()"
# if: "steps.step-1.outcome != 'success'"
run: 'docker run krzema12/github-workflows-kt-jit-binding-server &'
- id: 'wait-for-server'
if: "always()"
# if: "steps.step-1.outcome != 'success'"
run: 'sleep 30'
- id: 'replace-server-url-in-script'
if: "always()"
# if: "steps.step-1.outcome != 'success'"
run: sed -i -e 's/https:\/\/bindings.krzeminski.itt/http:\/\/localhost:8080/g' .github/workflows/test-workflow.main.kts
- id: 'execute-script-again'
if: "always()"
# if: "steps.step-1.outcome != 'success'"
run: 'rm ''.github/workflows/test-workflow.yaml'' && ''.github/workflows/test-workflow.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/test-workflow.yaml'''
test_job:
name: 'Test job'
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
steps:
- id: 'step-0'
uses: 'actions/checkout@v4'
- id: 'step-1'
run: 'echo ''Hello world!'''