pages-server/.woodpecker.yml

42 lines
950 B
YAML
Raw Normal View History

branches: main
pipeline:
# use vendor to cache dependencies
vendor:
image: golang:1.18
commands:
- go mod vendor
lint:
image: golangci/golangci-lint:latest
2022-06-14 19:07:29 +02:00
group: compliant
pull: true
commands:
- go version
- go install mvdan.cc/gofumpt@latest
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
- golangci-lint run --timeout 5m --build-tags integration
2022-06-14 19:07:29 +02:00
build:
group: compliant
image: a6543/golang_just
commands:
2022-06-14 19:07:29 +02:00
- go version
- just build-tag ${CI_COMMIT_TAG##v}
2022-06-14 19:07:29 +02:00
test:
image: a6543/golang_just
group: test
commands:
2022-06-14 19:07:29 +02:00
- just test
integration-tests:
2022-06-14 19:07:29 +02:00
image: a6543/golang_just
group: test
commands:
2022-06-14 19:07:29 +02:00
- just integration
environment:
- ACME_API=https://acme.mock.directory
- PAGES_DOMAIN=localhost.mock.directory
- RAW_DOMAIN=raw.localhost.mock.directory
- PORT=4430