Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bindings server

Bindings server #4

# This file was generated using Kotlin DSL (.github/workflows/bindings-server.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: 'Bindings server'
on:
push:
branches:
- 'main'
pull_request: {}
schedule:
- cron: '0 0 * * SUN'
workflow_dispatch: {}
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/bindings-server.yaml'' && ''.github/workflows/bindings-server.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/bindings-server.yaml'''
end-to-end-test:
name: 'End-to-end test'
runs-on: 'ubuntu-latest'
needs:
- 'check_yaml_consistency'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
steps:
- id: 'step-0'
uses: 'actions/checkout@v4'
- id: 'step-1'
uses: 'gradle/actions/setup-gradle@v4'
- id: 'step-2'
name: 'Start the server'
run: './gradlew :jit-binding-server:run &'
- id: 'step-3'
name: 'Wait for the server to respond'
env:
GHWKT_GITHUB_CONTEXT_JSON: '${{ toJSON(github) }}'
run: 'GHWKT_RUN_STEP=''end-to-end-test:step-3'' ''.github/workflows/bindings-server.main.kts'''
- id: 'step-4'
name: 'Clean Maven Local to fetch required POMs again'
run: 'rm -rf ~/.m2/repository/'
- id: 'step-5'
name: 'Execute the script using the bindings from the server'
run: |-
mv .github/workflows/test-script-consuming-jit-bindings.main.do-not-compile.kts .github/workflows/test-script-consuming-jit-bindings.main.kts
.github/workflows/test-script-consuming-jit-bindings.main.kts
- id: 'step-6'
name: 'Clean Maven Local to fetch required POMs again'
run: 'rm -rf ~/.m2/repository/'
- id: 'step-7'
name: 'Execute the script using bindings but without dependency on library'
run: |-
mv .github/workflows/test-served-bindings-depend-on-library.main.do-not-compile.kts .github/workflows/test-served-bindings-depend-on-library.main.kts
.github/workflows/test-served-bindings-depend-on-library.main.kts
- id: 'step-8'
name: 'Fetch maven-metadata.xml for top-level action'
run: 'curl --fail http://localhost:8080/actions/checkout/maven-metadata.xml | grep ''<version>v4</version>'''
- id: 'step-9'
name: 'Fetch maven-metadata.xml for nested action'
run: 'curl --fail http://localhost:8080/actions/cache__save/maven-metadata.xml | grep ''<version>v4</version>'''
deploy:
name: 'Deploy to DockerHub'
runs-on: 'ubuntu-latest'
needs:
- 'end-to-end-test'
- 'check_yaml_consistency'
env:
DOCKERHUB_USERNAME: '${{ secrets.DOCKERHUB_USERNAME }}'
DOCKERHUB_PASSWORD: '${{ secrets.DOCKERHUB_PASSWORD }}'
if: '${{ github.event_name == ''workflow_dispatch'' || github.event_name == ''schedule'' }}'
environment:
name: 'DockerHub'
steps:
- id: 'step-0'
uses: 'actions/checkout@v4'
- id: 'step-1'
uses: 'gradle/actions/setup-gradle@v4'
- id: 'step-2'
name: 'Build and publish image'
run: './gradlew :jit-binding-server:publishImage'
- id: 'step-3'
name: 'Use newest image on the server'
run: 'curl -X POST ${{ secrets.TRIGGER_IMAGE_PULL }} --insecure'
Morty Proxy This is a proxified and sanitized view of the page, visit original site.