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 07:24:56 +02:00
parent 5a9db02a0a
commit 3fdaffbc01
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892

View File

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