From 0a806d8620864b5bb789c0dbacbe0c557fb428a1 Mon Sep 17 00:00:00 2001 From: jad0s Date: Wed, 20 May 2026 10:36:31 +0200 Subject: [PATCH] feat(actions): added k3d test to CI workflow on push --- .forgejo/workflows/validate.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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