mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06: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:
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue