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: lint:
image: golang image: golang
commands: commands:
- go install mvdan.cc/gofumpt@latest
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
- go vet - go vet
test: # # TODO: make tests work
image: golang # test:
commands: # image: golang
- go test ./... # commands:
# - go test ./...
build: build:
image: golang image: golang