mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56:57 +00:00
check code format
This commit is contained in:
parent
5ffbac0a4b
commit
41883e47b6
1 changed files with 7 additions and 4 deletions
|
@ -8,12 +8,15 @@ pipeline:
|
|||
lint:
|
||||
image: golang
|
||||
commands:
|
||||
- go install mvdan.cc/gofumpt@latest
|
||||
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
||||
- go vet
|
||||
|
||||
test:
|
||||
image: golang
|
||||
commands:
|
||||
- go test ./...
|
||||
# # TODO: make tests work
|
||||
# test:
|
||||
# image: golang
|
||||
# commands:
|
||||
# - go test ./...
|
||||
|
||||
build:
|
||||
image: golang
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue