ci: add generate check
This commit is contained in:
@@ -33,6 +33,15 @@ run-pre-commit:
|
||||
script:
|
||||
- pre-commit run --all-files
|
||||
|
||||
check:
|
||||
stage: .pre
|
||||
image: golang:1.23.1
|
||||
script:
|
||||
- go install mvdan.cc/gofumpt@latest
|
||||
- go install golang.org/x/tools/cmd/goimports@latest
|
||||
- go generate ./...
|
||||
- git diff --stat --exit-code
|
||||
|
||||
build:
|
||||
extends: .buildtools
|
||||
stage: build
|
||||
|
||||
Reference in New Issue
Block a user