mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
24 lines
459 B
YAML
24 lines
459 B
YAML
pipeline:
|
|
# use vendor to cache dependencies
|
|
vendor:
|
|
image: golang
|
|
commands:
|
|
- go mod vendor
|
|
|
|
lint:
|
|
image: golang
|
|
commands:
|
|
- go install mvdan.cc/gofumpt@latest
|
|
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
|
- go vet
|
|
|
|
# # TODO: make tests work
|
|
# test:
|
|
# image: golang
|
|
# commands:
|
|
# - go test ./...
|
|
|
|
build:
|
|
image: golang
|
|
commands:
|
|
- go build
|