-
Notifications
You must be signed in to change notification settings - Fork 7
45 lines (38 loc) · 1.17 KB
/
ci.yml
File metadata and controls
45 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ⚒️ Go e2e tests for the webhook
on:
pull_request:
permissions:
contents: read
jobs:
e2e:
runs-on: ubuntu-latest
name: E2E tests 🔃
steps:
- name: Checkout 🧲
uses: actions/checkout@v4
- name: Restore go build cache ⏬
uses: actions/cache@v4
with:
path: ~/.cache/go-build
key: ${{ runner.os }}-go-build-v1
- name: Setup Go ⬇️
uses: actions/setup-go@v3
with:
go-version: 1.24.2
- name: Install kubectl, helm, kind and kuttl ⬇️
env:
KUTTL_VERSION: '0.25.0'
KUTTL_PLUGIN_FILENAME: 'kubectl-kuttl_0.25.0_linux_x86_64'
run: bash hack/install-dependencies.sh
- name: Run kind ⚙️
run: kind create cluster --name kuttl-cluster --config ./hack/kind-config.yaml
- name: Mount the image in the Kind cluster ⚙️
run: |
bash hack/ci-mount-image.sh
- name: Run the tests 🔎
run: |
echo "Running the tests"
kubectl kuttl test --config test/e2e/kuttl-test.yaml test/e2e/kuttl --start-kind=false
- name: Clean up Kind cluster ☠️
if: always()
run: kind delete cluster --name kuttl-cluster