diff --git a/.drone.yml b/.drone.yml index 204ffe6..a6abad5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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