File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
types : [opened, synchronize]
5
5
6
+ env :
7
+ GO_VERSION : ' 1.20'
8
+
6
9
jobs :
7
10
lint :
8
11
name : lint-check
12
15
- uses : actions/setup-go@v2
13
16
with :
14
17
stable : ' true'
15
- go-version : ' 1.20 ' # The Go version to download (if necessary) and use.
18
+ go-version : ${{ env.GO_VERSION }}
16
19
17
20
- name : Build hack tools for linting
18
21
run : cd hack/tools && make golangci-lint
42
45
- uses : actions/setup-go@v2
43
46
with :
44
47
stable : ' true'
45
- go-version : ' 1.20 ' # The Go version to download (if necessary) and use.
48
+ go-version : ${{ env.GO_VERSION }}
46
49
- name : Build hack tools for unit testing
47
50
run : cd hack/tools && make controller-gen etcd ginkgo kustomize
48
51
66
69
- uses : actions/setup-go@v2
67
70
with :
68
71
stable : ' true'
69
- go-version : ' 1.20 ' # The Go version to download (if necessary) and use.
72
+ go-version : ${{ env.GO_VERSION }}
70
73
- name : Build hack tools for integration testing
71
74
run : cd hack/tools && make controller-gen etcd ginkgo kustomize
72
75
- name : Perform integration tests
80
83
- uses : actions/setup-go@v2
81
84
with :
82
85
stable : ' true'
83
- go-version : ' 1.20 ' # The Go version to download (if necessary) and use.
86
+ go-version : ${{ env.GO_VERSION }}
84
87
85
88
# uncomment this step for debugging: tmate session
86
89
# - name: Setup tmate session
Original file line number Diff line number Diff line change 5
5
- ' main'
6
6
- ' release-**'
7
7
8
+ env :
9
+ GO_VERSION : ' 1.20'
8
10
9
11
jobs :
10
12
lint :
15
17
- uses : actions/setup-go@v2
16
18
with :
17
19
stable : ' true'
18
- go-version : ' 1.20 ' # The Go version to download (if necessary) and use.
20
+ go-version : ${{ env.GO_VERSION }}
19
21
20
22
- name : Build hack tools for linting
21
23
run : cd hack/tools && make golangci-lint
45
47
- uses : actions/setup-go@v2
46
48
with :
47
49
stable : ' true'
48
- go-version : ' 1.19 ' # The Go version to download (if necessary) and use.
50
+ go-version : ${{ env.GO_VERSION }}
49
51
- name : Build hack tools for unit testing
50
52
run : cd hack/tools && make controller-gen etcd ginkgo kustomize
51
53
You can’t perform that action at this time.
0 commit comments