Add pipeline (#65)
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>pull/1/head
parent
a5504acb0e
commit
f5d0dc7447
@ -0,0 +1,25 @@
|
||||
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
|
Loading…
Reference in New Issue