diff --git a/.forgejo/workflows/validate.yaml b/.forgejo/workflows/validate.yaml index e7091f1..6505f93 100644 --- a/.forgejo/workflows/validate.yaml +++ b/.forgejo/workflows/validate.yaml @@ -24,3 +24,23 @@ jobs: -schema-location default \ -schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \ ./manifests/ + - name: Install k3d + run: | + wget -O- https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | sh + + - name: Create test cluster + run: | + k3s cluster create test --wait + kubectl cluster-info + + - name: Apply manifests + run: | + kubectl apply -f manifests/ --recursive + + - name: Wait for deployments + run: | + kubectl wait --for=condition=available --timeout=120s deployment --all --all-namespaces + - name: Cleanup + if: always() + run: | + k3d cluster delete test