Skip to content

Commit 96dee89

Browse files
committed
ci: download deps and code gen before linting
1 parent 7762457 commit 96dee89

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: .github/workflows/golangci-lint.yml

+12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ jobs:
2727
with:
2828
go-version: stable
2929

30+
31+
- name: Install dependencies
32+
run: |
33+
go mod download
34+
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@latest
35+
36+
- name: Generate API code
37+
run: go generate ./...
38+
39+
- name: Clean module cache
40+
run: go clean -modcache
41+
3042
- name: golangci-lint
3143
uses: golangci/golangci-lint-action@v6
3244
with:

0 commit comments

Comments
 (0)