mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-24 13:56: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:
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue