Add Github Actions #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Setup GitHub Actions | |
on: | |
pull_request: | |
paths: | |
- action.yaml | |
- .github/workflows/test-action.yaml | |
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
sparse-checkout: | | |
action.yaml | |
- name: Set up kwokctl | |
uses: . # kubernetes-sigs/kwok@main | |
with: | |
command: kwokctl | |
- name: Test kwokctl | |
shell: bash | |
run: | | |
kwokctl --version | |
kwokctl create cluster | |
kubectl version | |
kwokctl delete cluster |