Skip to content

🌱 Add GHA to test CRDs against kind #1

🌱 Add GHA to test CRDs against kind

🌱 Add GHA to test CRDs against kind #1

Workflow file for this run

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