File tree Expand file tree Collapse file tree 11 files changed +700
-424
lines changed Expand file tree Collapse file tree 11 files changed +700
-424
lines changed Original file line number Diff line number Diff line change 34
34
with :
35
35
enable-cache : true
36
36
37
+ - name : Go cache
38
+ uses : actions/cache@v3
39
+ with :
40
+ path : |
41
+ ~/.cache/go-build
42
+ ~/go/pkg/mod
43
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
44
+ restore-keys : |
45
+ ${{ runner.os }}-go-
46
+
37
47
- name : Run unit tests
38
48
run : devbox run -- make test
39
49
64
74
with :
65
75
enable-cache : true
66
76
77
+ - if : steps.check_e2e_tests_exist.outputs.files_exists == 'true'
78
+ name : Go cache
79
+ uses : actions/cache@v3
80
+ with :
81
+ path : |
82
+ ~/.cache/go-build
83
+ ~/go/pkg/mod
84
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
85
+ restore-keys : |
86
+ ${{ runner.os }}-go-
87
+
67
88
- if : steps.check_e2e_tests_exist.outputs.files_exists == 'true'
68
89
name : Build and install on KinD
69
90
run : devbox run -- make dev.run-on-kind
@@ -94,6 +115,16 @@ jobs:
94
115
with :
95
116
enable-cache : true
96
117
118
+ - name : Go cache
119
+ uses : actions/cache@v3
120
+ with :
121
+ path : |
122
+ ~/.cache/go-build
123
+ ~/go/pkg/mod
124
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
125
+ restore-keys : |
126
+ ${{ runner.os }}-go-
127
+
97
128
- name : Export golang and golangci-lint versions
98
129
id : versions
99
130
run : |
@@ -148,6 +179,16 @@ jobs:
148
179
with :
149
180
enable-cache : true
150
181
182
+ - name : Go cache
183
+ uses : actions/cache@v3
184
+ with :
185
+ path : |
186
+ ~/.cache/go-build
187
+ ~/go/pkg/mod
188
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
189
+ restore-keys : |
190
+ ${{ runner.os }}-go-
191
+
151
192
- name : Set up pre-commit cache
152
193
uses : actions/cache@v3
153
194
with :
Original file line number Diff line number Diff line change 30
30
with :
31
31
enable-cache : true
32
32
33
+ - name : Go cache
34
+ uses : actions/cache@v3
35
+ with :
36
+ path : |
37
+ ~/.cache/go-build
38
+ ~/go/pkg/mod
39
+ key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
40
+ restore-keys : |
41
+ ${{ runner.os }}-go-
42
+
33
43
- name : Login to GitHub Container Registry
34
44
uses : docker/login-action@v3
35
45
with :
Original file line number Diff line number Diff line change 13
13
" gnumake@latest" ,
14
14
" gnused@latest" ,
15
15
" go@latest" ,
16
- " path:./hack/flakes/go-mod-upgrade" ,
17
16
" gojq@latest" ,
18
- " path:./hack/flakes/golangci-lint" ,
19
17
" golines@latest" ,
20
18
" goreleaser@latest" ,
21
19
" gotestsum@latest" ,
30
28
" kustomize@latest" ,
31
29
" pre-commit@latest" ,
32
30
" rsync@latest" ,
33
- " path:./hack/flakes/setup-envtest" ,
34
31
" shfmt@latest" ,
35
32
" upx@latest" ,
36
33
" yamale@latest" ,
37
- " yamllint@latest"
34
+ " yamllint@latest" ,
35
+ " path:./hack/flakes#go-mod-upgrade" ,
36
+ " path:./hack/flakes#golangci-lint" ,
37
+ " path:./hack/flakes#setup-envtest"
38
38
],
39
39
"shell" : {
40
40
"scripts" : {
You can’t perform that action at this time.
0 commit comments