gitops/.forgejo/workflows/validate.yaml
jad0s 15bee50699
Some checks failed
/ validate (push) Has been cancelled
fix(actions): switch k3d installation from sh to bash
2026-05-20 10:41:07 +02:00

47 lines
1.3 KiB
YAML

on:
push:
branches:
- dev
jobs:
validate:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install kubeconform
run: |
wget -O- https://github.com/yannh/kubeconform/releases/latest/download/kubeconform-linux-amd64.tar.gz | tar xz
mv kubeconform /usr/local/bin
- name: Validate manifests
run: |
kubeconform \
-strict \
-summary \
-ignore-missing-schemas \
-schema-location default \
-schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
./manifests/
- name: Install k3d
run: |
wget -O /tmp/k3d-install.sh https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh
bash /tmp/k3d-install.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