From 4b55fed67df2cce2795c47d591dfddf53663684c Mon Sep 17 00:00:00 2001 From: Hamza Ali Date: Thu, 5 Sep 2019 11:09:54 +0700 Subject: [PATCH] ci: Cache Go Dependencies --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index d11a953..7bc2115 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,13 +3,28 @@ name: Build steps: - name: Build image: golang:1.12 + volumes: + - name: deps + path: /go commands: - go build . + - name: Unit Tests image: golang:1.12 + volumes: + - name: deps + path: /go commands: - go test -tag=unit . + - name: Integration Tests image: golang:1.12 + volumes: + - name: deps + path: /go commands: - go test -tag=integration . + +volumes: +- name: deps + temp: {}