Skip to content

Commit b1cea51

Browse files
committed
Add e2e workflow for end-to-end testing
- Created a new GitHub Actions workflow for end-to-end testing. - Configured the workflow to trigger on pull requests and pushes to main and master branches. - Set up steps to check out the repository, install Go, kind, and kubectl, deploy SandboxFleet to kind, and run e2e tests.
1 parent 56e7e95 commit b1cea51

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/e2e.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: e2e
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
workflow_dispatch:
10+
11+
jobs:
12+
e2e:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 45
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version-file: go.mod
23+
24+
- name: Install kind
25+
run: |
26+
curl -fsSL -o ./kind "https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64"
27+
chmod +x ./kind
28+
sudo mv ./kind /usr/local/bin/kind
29+
kind version
30+
31+
- name: Install kubectl
32+
run: |
33+
curl -fsSL -o ./kubectl "https://dl.k8s.io/release/$(curl -fsSL https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
34+
chmod +x ./kubectl
35+
sudo mv ./kubectl /usr/local/bin/kubectl
36+
kubectl version --client
37+
38+
- name: Deploy SandboxFleet to kind
39+
env:
40+
WORKER_RUNTIME: gvisor
41+
APPLY_SAMPLES: "0"
42+
run: ./hack/deploy-kind.sh
43+
44+
- name: Run e2e tests
45+
run: ./hack/verify-e2e.sh

0 commit comments

Comments
 (0)