neon-operator/.github/workflows/tests.yaml
Michael Francis 1da5d8955e
Some checks failed
Tests / test (push) Failing after 25s
Tests / test (pull_request) Failing after 1m16s
doubt itll work
2024-09-11 18:42:50 +01:00

37 lines
1.0 KiB
YAML

name: Tests
on:
push:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
with:
install_only: true
- name: Run the tests
run: |
echo ${{ job.container.network }}
export KIND_EXPERIMENTAL_DOCKER_NETWORK=${{ job.container.network }}
kind create cluster \
--name ${{ github.run_id }} \
--kubeconfig $KUBECONFIG \
--config=./kind/kind-config-ci.yaml
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
kubectl apply -f manifests/example.yaml --validate=false
tilt ci