feat(actions): added k3d test to CI workflow on push
Some checks failed
/ validate (push) Has been cancelled
Some checks failed
/ validate (push) Has been cancelled
This commit is contained in:
parent
c9700654f7
commit
0a806d8620
1 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue