Files
locust-operator/.github/workflows/test-e2e.yml
Chris Richardson bcf3113ce4
Some checks failed
E2E Tests / Run on Ubuntu (push) Failing after 37s
E2E Tests / after-test (push) Has been skipped
Tests / Run on Ubuntu (push) Successful in 1m23s
Lint / Run on Ubuntu (push) Successful in 2m42s
asD
2025-05-13 08:41:17 -04:00

55 lines
1.3 KiB
YAML

name: E2E Tests
on:
push:
pull_request:
jobs:
test-e2e:
name: Run on Ubuntu
runs-on: ubuntu-20.04
continue-on-error: true
steps:
- name: Clone the code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm64/kubectl"
mv kubectl /usr/local/bin/
chmod +x /usr/local/bin/kubectl
- name: Install the latest version of kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-arm64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Verify kind installation
run: kind version
- name: Create kind cluster
run: kind create cluster
- name: Running Test e2e
run: |
go mod tidy
make test-e2e
after-test:
runs-on: ubuntu-latest
needs: [test-e2e]
steps:
- name: Install the latest version of kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-arm64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Delete kind cluster
run: kind delete cluster