@@ -30,17 +30,10 @@ jobs:
3030 test-integration :
3131 runs-on : ubuntu-latest
3232 steps :
33+ - uses : actions/checkout@v4
3334 - uses : actions/setup-go@v5
3435 with :
35- go-version : " 1.24"
36-
37- - name : setup env
38- run : |
39- echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
40- echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
41- shell : bash
42-
43- - uses : actions/checkout@v4
36+ go-version-file : ' go.mod'
4437 - uses : replicatedhq/action-k3s@main
4538 id : k3s
4639 with :
@@ -51,34 +44,22 @@ jobs:
5144 ensure-schemas-are-generated :
5245 runs-on : ubuntu-latest
5346 steps :
54- - uses : actions/setup-go@v5
55- with :
56- go-version : " 1.24"
57- - name : setup env
58- run : |
59- echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
60- echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
61- shell : bash
6247 - uses : actions/checkout@v4
6348 with :
6449 fetch-depth : 0
65- path : github.com/replicatedhq/troubleshoot
50+ - uses : actions/setup-go@v5
51+ with :
52+ go-version-file : ' go.mod'
6653 - run : |
67- cd github.com/replicatedhq/troubleshoot
6854 make check-schemas
6955
7056 compile-preflight :
7157 runs-on : ubuntu-latest
7258 steps :
59+ - uses : actions/checkout@v4
7360 - uses : actions/setup-go@v5
7461 with :
75- go-version : " 1.24"
76- - name : setup env
77- run : |
78- echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
79- echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
80- shell : bash
81- - uses : actions/checkout@v4
62+ go-version-file : ' go.mod'
8263 - run : make generate preflight
8364 - uses : actions/upload-artifact@v4
8465 with :
@@ -111,15 +92,10 @@ jobs:
11192 compile-supportbundle :
11293 runs-on : ubuntu-latest
11394 steps :
95+ - uses : actions/checkout@v4
11496 - uses : actions/setup-go@v5
11597 with :
116- go-version : " 1.24"
117- - name : setup env
118- run : |
119- echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
120- echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
121- shell : bash
122- - uses : actions/checkout@v4
98+ go-version-file : ' go.mod'
12399 - run : make generate support-bundle
124100 - uses : actions/upload-artifact@v4
125101 with :
@@ -142,7 +118,7 @@ jobs:
142118 path : bin/
143119 - run : chmod +x bin/support-bundle
144120 - run : make support-bundle-e2e-test
145-
121+
146122 # Additional e2e tests for support bundle that run in Go, these create a Kind cluster
147123 validate-supportbundle-e2e-go :
148124 runs-on : ubuntu-latest
@@ -166,15 +142,10 @@ jobs:
166142 compile-collect :
167143 runs-on : ubuntu-latest
168144 steps :
145+ - uses : actions/checkout@v4
169146 - uses : actions/setup-go@v5
170147 with :
171- go-version : " 1.24"
172- - name : setup env
173- run : |
174- echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
175- echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
176- shell : bash
177- - uses : actions/checkout@v4
148+ go-version-file : ' go.mod'
178149 - run : make generate collect
179150 - uses : actions/upload-artifact@v4
180151 with :
@@ -201,7 +172,7 @@ jobs:
201172
202173 - uses : actions/setup-go@v5
203174 with :
204- go-version : " 1.24 "
175+ go-version-file : ' go.mod '
205176
206177 - name : Run GoReleaser
207178 uses : goreleaser/goreleaser-action@v6
@@ -231,7 +202,7 @@ jobs:
231202
232203 - uses : actions/setup-go@v5
233204 with :
234- go-version : " 1.24 "
205+ go-version-file : ' go.mod '
235206
236207 -
uses :
sigstore/[email protected] 237208
0 commit comments