File tree Expand file tree Collapse file tree 3 files changed +55
-26
lines changed Expand file tree Collapse file tree 3 files changed +55
-26
lines changed Original file line number Diff line number Diff line change 1
- name : Go
1
+ name : CI
2
2
3
3
on :
4
4
push :
7
7
branches : [ main ]
8
8
9
9
jobs :
10
-
11
10
build-test :
12
11
runs-on : ubuntu-latest
13
12
steps :
18
17
go-version-file : ' go.mod'
19
18
cache : true
20
19
- name : build
21
- run : make build
22
-
23
- unit-test :
24
- runs-on : ubuntu-latest
25
- env :
26
- SKIP_TESTS : true
27
- steps :
28
- - name : Create k8s Kind Cluster
29
- uses : helm/kind-action@v1.12.0
30
- with :
31
- cluster_name : cluster
32
- - name : Set k8s provider
33
- run : |
34
- kubectl create namespace test-namespace
35
- kubectl create secret generic mysecret -n test-namespace --from-literal=key=p4ssw0rd
36
- kubectl create configmap myconfigmap -n test-namespace --from-literal=key=configValue
37
- - uses : actions/checkout@v4
38
- - name : Set up Go
39
- uses : actions/setup-go@v5
40
- with :
41
- go-version-file : ' go.mod'
42
- cache : true
43
- - name : test
44
- run : make test
20
+ run : make build
Original file line number Diff line number Diff line change
1
+ name : E2E test
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ e2e-test :
11
+ runs-on : ubuntu-latest
12
+ env :
13
+ SKIP_TESTS : true
14
+ steps :
15
+ - name : Create k8s Kind Cluster
16
+ uses : helm/kind-action@v1.12.0
17
+ with :
18
+ cluster_name : cluster
19
+ - name : Set k8s provider
20
+ run : |
21
+ kubectl create namespace test-namespace
22
+ kubectl create secret generic mysecret -n test-namespace --from-literal=key=p4ssw0rd
23
+ kubectl create configmap myconfigmap -n test-namespace --from-literal=key=configValue
24
+ - uses : actions/checkout@v4
25
+ - name : Set up Go
26
+ uses : actions/setup-go@v5
27
+ with :
28
+ go-version-file : ' go.mod'
29
+ cache : true
30
+ - name : test
31
+ run : make test
Original file line number Diff line number Diff line change
1
+ name : Unit Test
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ branches : [ main ]
8
+
9
+ jobs :
10
+ unit-test :
11
+ runs-on : ubuntu-latest
12
+ env :
13
+ SKIP_TESTS : true
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v5
18
+ with :
19
+ go-version-file : ' go.mod'
20
+ cache : true
21
+ - name : test
22
+ run : echo "unit test"
You can’t perform that action at this time.
0 commit comments