chore(ci/cd): add cache
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
Dawid Wysokiński 2022-10-05 08:00:54 +02:00
parent 739a71bf4c
commit 85fe2bd8b0
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892

View File

@ -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