pages-server/.woodpecker.yml

37 lines
915 B
YAML
Raw Normal View History

branches: main
pipeline:
# use vendor to cache dependencies
vendor:
image: golang:1.18
commands:
- go mod vendor
lint:
2022-06-10 18:33:03 +02:00
image: golangci/golangci-lint:latest
pull: true
commands:
- go version
- go install mvdan.cc/gofumpt@latest
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
2022-06-10 20:01:00 +02:00
- golangci-lint run --timeout 5m --build-tags integration
test:
image: golang:1.18
commands:
2022-06-10 20:01:00 +02:00
- go test -race codeberg.org/codeberg/pages/server/...
build:
image: golang:1.18
commands:
- go build
2022-06-10 17:39:12 +02:00
integration-tests:
image: golang:1.18
commands:
2022-06-10 20:01:00 +02:00
- go test -race -tags integration codeberg.org/codeberg/pages/integration/...
2022-06-10 19:27:03 +02:00
environment:
- ACME_API=https://acme.mock.directory
- PAGES_DOMAIN=localhost.mock.directory
- RAW_DOMAIN=raw.localhost.mock.directory
- PORT=4430