Skip to content

wip

wip #36

Workflow file for this run

# This file was generated using Kotlin DSL (.github/workflows/foo.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/krzema12/github-workflows-kt
name: Debug
on:
push: {}
jobs:
check_yaml_consistency:
name: Check YAML consistency
runs-on: ubuntu-latest
steps:
- id: step-0
name: Check out
uses: actions/checkout@v3
- id: step-1
name: Execute script
run: rm '.github/workflows/foo.yaml' && '.github/workflows/foo.main.kts'
- id: step-2
name: Consistency check
run: git diff --exit-code '.github/workflows/foo.yaml'
build:
name: Build
runs-on: windows-latest
needs:
- check_yaml_consistency
steps:
- id: step-0
name: Configure Git
run: git config --global core.autocrlf input
- id: step-1
name: Checkout
uses: actions/checkout@v3
- id: step-2
name: Setup Java 11
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
- id: step-3
name: Build
uses: burrunan/gradle-cache-action@v1
with:
debug: false
concurrent: true
arguments: |-
--show-version
build
--info
--stacktrace
--scan
- id: step-4
name: Save built artifacts to cache
uses: actions/cache/save@v3
with:
path: |-
action.yml
build/distributions/
key: ${{ github.run_id }}
test:
name: Test
runs-on: windows-latest
needs:
- build
- check_yaml_consistency
steps:
- id: step-0
name: Restore built artifacts from cache
uses: actions/cache/restore@v3
with:
path: |-
action.yml
build/distributions/
key: ${{ github.run_id }}
fail-on-cache-miss: true
- id: step-1
name: Execute action
uses: ./
with:
distribution: openSUSE-Tumbleweed
- id: step-2
name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: always()
- id: step-3
name: Test - action should fail if an invalid distribution is given
shell: wsl-bash {0}
run: true