diff --git a/.drone.yml b/.drone.yml index 0709e59..2e4a399 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,10 +19,13 @@ steps: endpoint: https://minio.dwysokinski.me mount: - /root/.cache/go-build + - /root/.cache/go-mod - name: test image: golang:1.19 environment: TESTS_DB_DSN: postgres://postgres:twhelptest@database:5432/twhelptest?sslmode=disable + GOCACHE: /root/.cache/go-build + GOMODCACHE: /root/.cache/go-mod commands: - make generate - go test -race -coverprofile=coverage.txt -covermode=atomic ./... @@ -41,6 +44,7 @@ steps: endpoint: https://minio.dwysokinski.me mount: - /root/.cache/go-build + - /root/.cache/go-mod services: - name: database