mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
f5d0dc7447
close #54 Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/65 Reviewed-by: Andreas Shimokawa <ashimokawa@noreply.codeberg.org>
25 lines
513 B
YAML
25 lines
513 B
YAML
pipeline:
|
|
# use vendor to cache dependencies
|
|
vendor:
|
|
image: golang
|
|
commands:
|
|
- go mod vendor
|
|
|
|
lint:
|
|
image: golangci/golangci-lint:v1.45.2
|
|
commands:
|
|
- go version
|
|
- go install mvdan.cc/gofumpt@latest
|
|
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
|
- golangci-lint run
|
|
|
|
# # TODO: make tests work
|
|
# test:
|
|
# image: golang
|
|
# commands:
|
|
# - go test ./...
|
|
|
|
build:
|
|
image: golang
|
|
commands:
|
|
- go build
|