mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2024-11-18 10:29:43 +00:00
02bd942b04
continue #75 close #16 - fix regression (from #34) _thanks to @crystal_ - create own gitea client package - more logging - add mock impl of CertDB Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: crystal <crystal@noreply.codeberg.org> Reviewed-on: https://codeberg.org/Codeberg/pages-server/pulls/78 Reviewed-by: crapStone <crapstone@noreply.codeberg.org>
26 lines
521 B
YAML
26 lines
521 B
YAML
branches: main
|
|
|
|
pipeline:
|
|
# use vendor to cache dependencies
|
|
vendor:
|
|
image: golang:1.18
|
|
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 --timeout 5m
|
|
|
|
test:
|
|
image: golang:1.18
|
|
commands:
|
|
- go test ./...
|
|
|
|
build:
|
|
image: golang:1.18
|
|
commands:
|
|
- go build
|