This commit is contained in:
parent
739a71bf4c
commit
85fe2bd8b0
|
@ -18,12 +18,14 @@ steps:
|
|||
path_style: true
|
||||
endpoint: https://minio.dwysokinski.me
|
||||
mount:
|
||||
- /root/.cache/go-mod
|
||||
- .cache/go-mod
|
||||
- .cache/go-build
|
||||
- name: test
|
||||
image: golang:1.19
|
||||
environment:
|
||||
TESTS_DB_DSN: postgres://postgres:twhelptest@database:5432/twhelptest?sslmode=disable
|
||||
GOMODCACHE: /root/.cache/go-mod
|
||||
GOMODCACHE: /drone/src/.cache/go-mod
|
||||
GOCACHE: /drone/src/.cache/go-build
|
||||
commands:
|
||||
- make generate
|
||||
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
|
||||
|
@ -41,7 +43,8 @@ steps:
|
|||
path_style: true
|
||||
endpoint: https://minio.dwysokinski.me
|
||||
mount:
|
||||
- /root/.cache/go-mod
|
||||
- .cache/go-mod
|
||||
- .cache/go-build
|
||||
|
||||
services:
|
||||
- name: database
|
||||
|
|
Reference in New Issue
Block a user