neon-operator/.github/workflows/tests.yaml

36 lines
1.0 KiB
YAML
Raw Normal View History

2024-09-11 09:59:14 -04:00
name: Tests
on:
2024-09-11 11:41:48 -04:00
push:
2024-09-11 16:01:53 -04:00
branches:
- main
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 13:31:36 -04:00
echo ${{ job.container.network }}
export KIND_EXPERIMENTAL_DOCKER_NETWORK=${{ job.container.network }}
2024-09-11 12:48:05 -04:00
2024-09-11 13:31:36 -04:00
kind create cluster \
2024-09-11 13:34:47 -04:00
--name ${{ github.run_id }} \
2024-09-11 13:31:36 -04:00
--kubeconfig $KUBECONFIG \
--config=./kind/kind-config-ci.yaml
2024-09-11 12:48:05 -04:00
2024-09-11 13:42:50 -04:00
kubectl cluster-info --context kind-19 --kubeconfig --config=./kind/kind-config-ci.yaml
kubectl config set-cluster kind-${{ github.run_id }} --server=https://kind-control-plane:6443
2024-09-11 13:09:47 -04:00
kubectl apply -f manifests/example.yaml --validate=false
tilt ci