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,17 @@ 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 : " "
100- - 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
101+ - working-directory : cmd/ocisrv
102+ name : Staticcheck cmd/ocisrv
103+ env :
104+ GOWORK : " "
105+ STATICCHECK_CACHE : /cache/staticcheck
106+ run : go tool staticcheck ./...
107107 - working-directory : cmd/ocisrv
108108 name : Generate cmd/ocisrv with GOWORK=off
109109 run : go generate ./...
@@ -116,16 +116,17 @@ jobs:
116116 GOWORK : " off"
117117 - working-directory : cmd/ocisrv
118118 name : Check cmd/ocisrv with GOWORK=off
119- run : go vet ./...
119+ run : |-
120+ go mod tidy -diff
121+ go vet ./...
120122 env :
121123 GOWORK : " off"
122- - 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+ name : Staticcheck cmd/ocisrv with GOWORK=off
126+ env :
127+ GOWORK : " off"
128+ STATICCHECK_CACHE : /cache/staticcheck
129+ run : go tool staticcheck ./...
129130 - working-directory : ociregistry/internal/conformance
130131 name : Generate ociregistry/internal/conformance
131132 run : go generate ./...
@@ -138,16 +139,17 @@ jobs:
138139 GOWORK : " "
139140 - working-directory : ociregistry/internal/conformance
140141 name : Check ociregistry/internal/conformance
141- run : go vet ./...
142+ run : |-
143+ go mod tidy -diff
144+ go vet ./...
142145 env :
143146 GOWORK : " "
144- - 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
147+ - working-directory : ociregistry/internal/conformance
148+ name : Staticcheck ociregistry/internal/conformance
149+ env :
150+ GOWORK : " "
151+ STATICCHECK_CACHE : /cache/staticcheck
152+ run : go tool staticcheck ./...
151153 - working-directory : ociregistry/internal/conformance
152154 name : Generate ociregistry/internal/conformance with GOWORK=off
153155 run : go generate ./...
@@ -160,16 +162,17 @@ jobs:
160162 GOWORK : " off"
161163 - working-directory : ociregistry/internal/conformance
162164 name : Check ociregistry/internal/conformance with GOWORK=off
163- run : go vet ./...
165+ run : |-
166+ go mod tidy -diff
167+ go vet ./...
164168 env :
165169 GOWORK : " off"
166- - 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
170+ - working-directory : ociregistry/internal/conformance
171+ name : Staticcheck ociregistry/internal/conformance with GOWORK=off
172+ env :
173+ GOWORK : " off"
174+ STATICCHECK_CACHE : /cache/staticcheck
175+ run : go tool staticcheck ./...
173176 - working-directory : ociregistry
174177 name : Generate ociregistry
175178 run : go generate ./...
@@ -182,16 +185,17 @@ jobs:
182185 GOWORK : " "
183186 - working-directory : ociregistry
184187 name : Check ociregistry
185- run : go vet ./...
188+ run : |-
189+ go mod tidy -diff
190+ go vet ./...
186191 env :
187192 GOWORK : " "
188- - 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
193+ - working-directory : ociregistry
194+ name : Staticcheck ociregistry
195+ env :
196+ GOWORK : " "
197+ STATICCHECK_CACHE : /cache/staticcheck
198+ run : go tool staticcheck ./...
195199 - working-directory : ociregistry
196200 name : Generate ociregistry with GOWORK=off
197201 run : go generate ./...
@@ -204,16 +208,17 @@ jobs:
204208 GOWORK : " off"
205209 - working-directory : ociregistry
206210 name : Check ociregistry with GOWORK=off
207- run : go vet ./...
211+ run : |-
212+ go mod tidy -diff
213+ go vet ./...
208214 env :
209215 GOWORK : " off"
210- - 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
216+ - working-directory : ociregistry
217+ name : Staticcheck ociregistry with GOWORK=off
218+ env :
219+ GOWORK : " off"
220+ STATICCHECK_CACHE : /cache/staticcheck
221+ run : go tool staticcheck ./...
217222 - working-directory : internal/ci
218223 name : Generate internal/ci
219224 run : go generate ./...
@@ -226,16 +231,17 @@ jobs:
226231 GOWORK : " "
227232 - working-directory : internal/ci
228233 name : Check internal/ci
229- run : go vet ./...
234+ run : |-
235+ go mod tidy -diff
236+ go vet ./...
230237 env :
231238 GOWORK : " "
232- - 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
239+ - working-directory : internal/ci
240+ name : Staticcheck internal/ci
241+ env :
242+ GOWORK : " "
243+ STATICCHECK_CACHE : /cache/staticcheck
244+ run : go tool staticcheck ./...
239245 - working-directory : internal/ci
240246 name : Generate internal/ci with GOWORK=off
241247 run : go generate ./...
@@ -248,16 +254,17 @@ jobs:
248254 GOWORK : " off"
249255 - working-directory : internal/ci
250256 name : Check internal/ci with GOWORK=off
251- run : go vet ./...
257+ run : |-
258+ go mod tidy -diff
259+ go vet ./...
252260 env :
253261 GOWORK : " off"
254- - 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
262+ - working-directory : internal/ci
263+ name : Staticcheck internal/ci with GOWORK=off
264+ env :
265+ GOWORK : " off"
266+ STATICCHECK_CACHE : /cache/staticcheck
267+ run : go tool staticcheck ./...
261268 - run : go work sync
262269 - if : always()
263270 name : Check that git is clean at the end of the job
0 commit comments