mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-25 06:16:58 +00:00
add 3 integration-tests
This commit is contained in:
parent
bb8eb32ee2
commit
8e831db1e9
2 changed files with 87 additions and 0 deletions
|
@ -22,3 +22,19 @@ pipeline:
|
|||
image: golang:1.18
|
||||
commands:
|
||||
- go build
|
||||
|
||||
integration-tests:
|
||||
image: golang:1.18
|
||||
detach: true
|
||||
commands:
|
||||
- go run . --verbose &
|
||||
- pid=$!
|
||||
- sleep 10s
|
||||
- cd integration && go test -tags integration ./...
|
||||
- kill $pid
|
||||
environment:
|
||||
- ACME_API=https://acme.mock.directory
|
||||
- ACME_ACCEPT_TERMS=true
|
||||
- PAGES_DOMAIN=localhost.mock.directory
|
||||
- RAW_DOMAIN=raw.localhost.mock.directory
|
||||
- PORT=4430
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue