mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06: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
|
- go mod vendor
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: golang
|
image: golangci/golangci-lint:v1.45.2
|
||||||
commands:
|
commands:
|
||||||
|
- go version
|
||||||
- go install mvdan.cc/gofumpt@latest
|
- go install mvdan.cc/gofumpt@latest
|
||||||
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
||||||
- go vet
|
- golangci-lint run -v
|
||||||
|
|
||||||
# # TODO: make tests work
|
# # TODO: make tests work
|
||||||
# test:
|
# test:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue