mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
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>
This commit is contained in:
parent
a5504acb0e
commit
f5d0dc7447
12 changed files with 58 additions and 36 deletions
25
.woodpecker.yml
Normal file
25
.woodpecker.yml
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue