mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
add golangci-lint
This commit is contained in:
parent
ac72eb2d64
commit
9629df54b2
1 changed files with 3 additions and 2 deletions
|
@ -6,11 +6,12 @@ pipeline:
|
|||
- go mod vendor
|
||||
|
||||
lint:
|
||||
image: golang
|
||||
image: golangci/golangci-lint:v1.45.2
|
||||
commands:
|
||||
- go version
|
||||
- go install mvdan.cc/gofumpt@latest
|
||||
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
||||
- go vet
|
||||
- golangci-lint run -v
|
||||
|
||||
# # TODO: make tests work
|
||||
# test:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue