check code format

This commit is contained in:
6543 2022-03-27 19:35:06 +02:00
parent 5ffbac0a4b
commit 41883e47b6

View file

@ -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