2024-09-11 09:59:14 -04:00
|
|
|
name: Tests
|
|
|
|
on:
|
2024-09-11 11:41:48 -04:00
|
|
|
push:
|
2024-09-11 09:59:14 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-09-11 10:03:02 -04:00
|
|
|
workflow_dispatch:
|
2024-09-11 09:59:14 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2024-09-11 12:20:18 -04:00
|
|
|
- name: Setup Kubernetes Tools
|
|
|
|
uses: yokawasa/action-setup-kube-tools@v0.11.1
|
|
|
|
with:
|
|
|
|
tilt: "v0.33.20"
|
|
|
|
- name: Create k8s Kind Cluster
|
|
|
|
uses: helm/kind-action@v1
|
2024-09-11 12:26:31 -04:00
|
|
|
- name: Run the tests
|
|
|
|
run: |
|
2024-09-11 12:48:05 -04:00
|
|
|
export KIND_EXPERIMENTAL_DOCKER_NETWORK=${{ job.container.network }}
|
|
|
|
|
|
|
|
kind create cluster \
|
|
|
|
--kubeconfig $KUBECONFIG \
|
|
|
|
--config=./kind-config.yaml
|
|
|
|
|
|
|
|
kubectl config set-cluster kind-kind --server=https://kind-control-plane:6443
|
|
|
|
kubectl apply -f manifests/example.yaml --validate=false
|
|
|
|
tilt ci
|