Skip to content

feat: WIP: provide bindings with comment #956

feat: WIP: provide bindings with comment

feat: WIP: provide bindings with comment #956

# This file was generated using Kotlin DSL (.github/workflows/end-to-end-tests.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: 'End-to-end tests (2nd 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: 'Set up JDK'
uses: 'actions/setup-java@v5'
with:
java-version: '22'
distribution: 'zulu'
cache: 'gradle'
- id: 'step-2'
uses: 'gradle/actions/setup-gradle@v5'
- id: 'step-3'
name: 'Publish to Maven local'
run: './gradlew publishToMavenLocal'
- id: 'step-4'
name: 'Execute script'
run: 'rm ''.github/workflows/end-to-end-tests-2nd-workflow.yaml'' && ''.github/workflows/end-to-end-tests.main.kts'''
- id: 'step-5'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/end-to-end-tests-2nd-workflow.yaml'''
another_job:
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v5'
- id: 'step-1'
name: 'Set up JDK'
uses: 'actions/setup-java@v5'
with:
java-version: '22'
distribution: 'zulu'
cache: 'gradle'
- id: 'step-2'
uses: 'gradle/actions/setup-gradle@v5'
- id: 'step-3'
name: 'Publish to Maven local'
run: './gradlew publishToMavenLocal'
- id: 'step-4'
name: 'Step with a Kotlin-based logic, in a different workflow'
env:
GHWKT_GITHUB_CONTEXT_JSON: '${{ toJSON(github) }}'
run: 'GHWKT_RUN_STEP=''end-to-end-tests-2nd-workflow.yaml:another_job:step-4'' ''.github/workflows/end-to-end-tests.main.kts'''