🌱 Add GHA to test CRDs against kind #1
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: verify | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- '**' | |
workflow_dispatch: | |
merge_group: | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- name: Install Kind | |
run: | | |
export KIND_VERSION=$(go list -m k8s.io/client-go | cut -d" " -f2 | sed 's/^v0\.\([[:digit:]]\{1,\}\)\.[[:digit:]]\{1,\}$$/1.\1.0/')) | |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/${KIND_VERSION}/kind-linux-amd64 | |
chmod +x ./kind | |
- name: Apply CRDs | |
run: | | |
for crd in $(ls crds/*_crd.yaml); do | |
kubectl create -f $crd | |
done |