1515 defaults :
1616 run :
1717 shell : bash --noprofile --norc -euo pipefail {0}
18- runs-on : ns -linux-amd64
18+ runs-on : namespace-profile -linux-amd64
1919 if : |-
2020 (contains(github.event.head_commit.message, '
2121 Dispatch-Trailer: {"type":"trybot"')) || ! (contains(github.event.head_commit.message, '
7575 uses : namespacelabs/nscloud-cache-action@v1
7676 with :
7777 cache : go
78- path : ${{ runner.temp }}/staticcheck
7978 - if : |-
8079 github.repository == 'cue-labs/oci' && (((github.ref == 'refs/heads/main') && (! (contains(github.event.head_commit.message, '
8180 Dispatch-Trailer: {"type":"')))) || (github.ref == 'refs/heads/ci/test'))
@@ -94,16 +93,16 @@ jobs:
9493 GOWORK : " "
9594 - working-directory : cmd/ocisrv
9695 name : Check cmd/ocisrv
97- run : go vet ./...
96+ run : |-
97+ go mod tidy -diff
98+ go vet ./...
9899 env :
99100 GOWORK : " "
100101 - name : Staticcheck cmd/ocisrv
101- uses : dominikh/staticcheck-action@v1
102- with :
103- version : 2025.1.1
104- install-go : false
105- use-cache : false
106- working-directory : cmd/ocisrv
102+ working-directory : cmd/ocisrv
103+ env :
104+ STATICCHECK_CACHE : /cache/staticcheck
105+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
107106 - working-directory : cmd/ocisrv
108107 name : Generate cmd/ocisrv with GOWORK=off
109108 run : go generate ./...
@@ -116,16 +115,16 @@ jobs:
116115 GOWORK : " off"
117116 - working-directory : cmd/ocisrv
118117 name : Check cmd/ocisrv with GOWORK=off
119- run : go vet ./...
118+ run : |-
119+ go mod tidy -diff
120+ go vet ./...
120121 env :
121122 GOWORK : " off"
122123 - name : Staticcheck cmd/ocisrv with GOWORK=off
123- uses : dominikh/staticcheck-action@v1
124- with :
125- version : 2025.1.1
126- install-go : false
127- use-cache : false
128- working-directory : cmd/ocisrv
124+ working-directory : cmd/ocisrv
125+ env :
126+ STATICCHECK_CACHE : /cache/staticcheck
127+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
129128 - working-directory : ociregistry/internal/conformance
130129 name : Generate ociregistry/internal/conformance
131130 run : go generate ./...
@@ -138,16 +137,16 @@ jobs:
138137 GOWORK : " "
139138 - working-directory : ociregistry/internal/conformance
140139 name : Check ociregistry/internal/conformance
141- run : go vet ./...
140+ run : |-
141+ go mod tidy -diff
142+ go vet ./...
142143 env :
143144 GOWORK : " "
144145 - name : Staticcheck ociregistry/internal/conformance
145- uses : dominikh/staticcheck-action@v1
146- with :
147- version : 2025.1.1
148- install-go : false
149- use-cache : false
150- working-directory : ociregistry/internal/conformance
146+ working-directory : ociregistry/internal/conformance
147+ env :
148+ STATICCHECK_CACHE : /cache/staticcheck
149+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
151150 - working-directory : ociregistry/internal/conformance
152151 name : Generate ociregistry/internal/conformance with GOWORK=off
153152 run : go generate ./...
@@ -160,16 +159,16 @@ jobs:
160159 GOWORK : " off"
161160 - working-directory : ociregistry/internal/conformance
162161 name : Check ociregistry/internal/conformance with GOWORK=off
163- run : go vet ./...
162+ run : |-
163+ go mod tidy -diff
164+ go vet ./...
164165 env :
165166 GOWORK : " off"
166167 - name : Staticcheck ociregistry/internal/conformance with GOWORK=off
167- uses : dominikh/staticcheck-action@v1
168- with :
169- version : 2025.1.1
170- install-go : false
171- use-cache : false
172- working-directory : ociregistry/internal/conformance
168+ working-directory : ociregistry/internal/conformance
169+ env :
170+ STATICCHECK_CACHE : /cache/staticcheck
171+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
173172 - working-directory : ociregistry
174173 name : Generate ociregistry
175174 run : go generate ./...
@@ -182,16 +181,16 @@ jobs:
182181 GOWORK : " "
183182 - working-directory : ociregistry
184183 name : Check ociregistry
185- run : go vet ./...
184+ run : |-
185+ go mod tidy -diff
186+ go vet ./...
186187 env :
187188 GOWORK : " "
188189 - name : Staticcheck ociregistry
189- uses : dominikh/staticcheck-action@v1
190- with :
191- version : 2025.1.1
192- install-go : false
193- use-cache : false
194- working-directory : ociregistry
190+ working-directory : ociregistry
191+ env :
192+ STATICCHECK_CACHE : /cache/staticcheck
193+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
195194 - working-directory : ociregistry
196195 name : Generate ociregistry with GOWORK=off
197196 run : go generate ./...
@@ -204,16 +203,16 @@ jobs:
204203 GOWORK : " off"
205204 - working-directory : ociregistry
206205 name : Check ociregistry with GOWORK=off
207- run : go vet ./...
206+ run : |-
207+ go mod tidy -diff
208+ go vet ./...
208209 env :
209210 GOWORK : " off"
210211 - name : Staticcheck ociregistry with GOWORK=off
211- uses : dominikh/staticcheck-action@v1
212- with :
213- version : 2025.1.1
214- install-go : false
215- use-cache : false
216- working-directory : ociregistry
212+ working-directory : ociregistry
213+ env :
214+ STATICCHECK_CACHE : /cache/staticcheck
215+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
217216 - working-directory : internal/ci
218217 name : Generate internal/ci
219218 run : go generate ./...
@@ -226,16 +225,16 @@ jobs:
226225 GOWORK : " "
227226 - working-directory : internal/ci
228227 name : Check internal/ci
229- run : go vet ./...
228+ run : |-
229+ go mod tidy -diff
230+ go vet ./...
230231 env :
231232 GOWORK : " "
232233 - name : Staticcheck internal/ci
233- uses : dominikh/staticcheck-action@v1
234- with :
235- version : 2025.1.1
236- install-go : false
237- use-cache : false
238- working-directory : internal/ci
234+ working-directory : internal/ci
235+ env :
236+ STATICCHECK_CACHE : /cache/staticcheck
237+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
239238 - working-directory : internal/ci
240239 name : Generate internal/ci with GOWORK=off
241240 run : go generate ./...
@@ -248,16 +247,16 @@ jobs:
248247 GOWORK : " off"
249248 - working-directory : internal/ci
250249 name : Check internal/ci with GOWORK=off
251- run : go vet ./...
250+ run : |-
251+ go mod tidy -diff
252+ go vet ./...
252253 env :
253254 GOWORK : " off"
254255 - name : Staticcheck internal/ci with GOWORK=off
255- uses : dominikh/staticcheck-action@v1
256- with :
257- version : 2025.1.1
258- install-go : false
259- use-cache : false
260- working-directory : internal/ci
256+ working-directory : internal/ci
257+ env :
258+ STATICCHECK_CACHE : /cache/staticcheck
259+ run : go tool -modfile=${{ github.workspace }}/internal/ci/go.mod staticcheck ./...
261260 - run : go work sync
262261 - if : always()
263262 name : Check that git is clean at the end of the job
0 commit comments