-
Notifications
You must be signed in to change notification settings - Fork 8
126 lines (106 loc) · 3.45 KB
/
e2e.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: CI E2E
on:
pull_request:
branches:
- 'main'
defaults:
run:
shell: bash
jobs:
e2e-positive:
runs-on: ubuntu-22.04
steps:
- name: checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@v4
id: go
with:
go-version: 1.22.5
- name: build test binary
run: |
go version
make build-e2e
- name: build tool
run: |
go version
make
- name: create K8S kind cluster
run: |
# kind is part of 20.04 image, see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
kind version
# see image listing in https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0
kind create cluster --config=hack/kind-config-e2e-positive.yaml --image kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
kubectl label node kind-worker node-role.kubernetes.io/worker=''
hack/wait-nodes-ready.sh
kubectl describe nodes
uname -a
- name: run E2E tests
run: |
_out/e2e.test --ginkgo.v --ginkgo.label-filter='positive'
e2e-negative:
runs-on: ubuntu-22.04
steps:
- name: checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@v4
id: go
with:
go-version: 1.22.5
- name: build test binary
run: |
make build-e2e
- name: build tool
run: |
make
- name: create K8S kind cluster
run: |
# kind is part of 20.04 image, see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
kind version
# see image listing in https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0
kind create cluster --config=hack/kind-config-e2e-negative.yaml --image kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
kubectl label node kind-worker node-role.kubernetes.io/worker=''
hack/wait-nodes-ready.sh
kubectl describe nodes
uname -a
- name: run E2E tests
run: |
_out/e2e.test --ginkgo.v --ginkgo.label-filter='negative'
e2e-manifests:
runs-on: ubuntu-22.04
steps:
- name: checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup golang
uses: actions/setup-go@v4
id: go
with:
go-version: 1.22.5
- name: build test binary
run: |
go version
make build-e2e
- name: build tool
run: |
go version
make release-manifests-k8s
- name: create K8S kind cluster
run: |
# kind is part of 20.04 image, see: https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
kind version
# see image listing in https://github.com/kubernetes-sigs/kind/releases/tag/v0.20.0
kind create cluster --config=hack/kind-config-e2e-positive.yaml --image kindest/node:v1.27.3@sha256:3966ac761ae0136263ffdb6cfd4db23ef8a83cba8a463690e98317add2c9ba72
kubectl label node kind-worker node-role.kubernetes.io/worker=''
hack/wait-nodes-ready.sh
kubectl describe nodes
uname -a
- name: run E2E tests
run: |
_out/e2e.test --ginkgo.v --ginkgo.label-filter='manifests'