mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 22:06:57 +00:00
use Justfile in ci too
This commit is contained in:
parent
4c6164ef05
commit
af3a6271d6
1 changed files with 14 additions and 9 deletions
|
@ -9,6 +9,7 @@ pipeline:
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: golangci/golangci-lint:latest
|
image: golangci/golangci-lint:latest
|
||||||
|
group: compliant
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- go version
|
- go version
|
||||||
|
@ -16,20 +17,24 @@ pipeline:
|
||||||
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
- "[ $(gofumpt -extra -l . | wc -l) != 0 ] && { echo 'code not formated'; exit 1; }"
|
||||||
- golangci-lint run --timeout 5m --build-tags integration
|
- golangci-lint run --timeout 5m --build-tags integration
|
||||||
|
|
||||||
test:
|
|
||||||
image: golang:1.18
|
|
||||||
commands:
|
|
||||||
- go test -race codeberg.org/codeberg/pages/server/...
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: golang:1.18
|
group: compliant
|
||||||
|
image: a6543/golang_just
|
||||||
commands:
|
commands:
|
||||||
- go build
|
- go version
|
||||||
|
- just build
|
||||||
|
|
||||||
|
test:
|
||||||
|
image: a6543/golang_just
|
||||||
|
group: test
|
||||||
|
commands:
|
||||||
|
- just test
|
||||||
|
|
||||||
integration-tests:
|
integration-tests:
|
||||||
image: golang:1.18
|
image: a6543/golang_just
|
||||||
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- go test -race -tags integration codeberg.org/codeberg/pages/integration/...
|
- just integration
|
||||||
environment:
|
environment:
|
||||||
- ACME_API=https://acme.mock.directory
|
- ACME_API=https://acme.mock.directory
|
||||||
- PAGES_DOMAIN=localhost.mock.directory
|
- PAGES_DOMAIN=localhost.mock.directory
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue