Header icon #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E Tests | |
on: | |
push: | |
branches: [ master, testing ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.23 | |
- name: Set up Kubernetes | |
uses: engineerd/[email protected] | |
with: | |
version: "v0.11.1" | |
- name: Testing | |
run: | | |
kubectl cluster-info | |
kubectl get pods -n kube-system | |
echo "current-context:" $(kubectl config current-context) | |
echo "environment-kubeconfig:" ${KUBECONFIG} | |
ls ~/.kube | |
ls ~/.kube/config | |
cat ~/.kube/config | |
- name: Install Terraform | |
uses: hashicorp/setup-terraform@v1 | |
- name: Run E2E tests | |
run: | | |
go test -v ./test | |
- name: Clean up | |
if: always() | |
run: | | |
kind delete cluster |