use Justfile in ci too

This commit is contained in:
6543 2022-06-14 19:07:29 +02:00
parent 4c6164ef05
commit af3a6271d6
No known key found for this signature in database
GPG key ID: C99B82E40B027BAE

View file

@ -9,6 +9,7 @@ pipeline:
lint:
image: golangci/golangci-lint:latest
group: compliant
pull: true
commands:
- go version
@ -16,20 +17,24 @@ pipeline:
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
- golangci-lint run --timeout 5m --build-tags integration
test:
image: golang:1.18
commands:
- go test -race codeberg.org/codeberg/pages/server/...
build:
image: golang:1.18
group: compliant
image: a6543/golang_just
commands:
- go build
- go version
- just build
test:
image: a6543/golang_just
group: test
commands:
- just test
integration-tests:
image: golang:1.18
image: a6543/golang_just
group: test
commands:
- go test -race -tags integration codeberg.org/codeberg/pages/integration/...
- just integration
environment:
- ACME_API=https://acme.mock.directory
- PAGES_DOMAIN=localhost.mock.directory