From 3fdaffbc01a04ed79ec03d4c142968487d68faa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Wed, 5 Oct 2022 07:24:56 +0200 Subject: [PATCH] chore(ci/cd): add cache --- .drone.yml | 4 ++++ 1 file changed, 4 insertions(+) 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