From 2d158a5bd031cfc818d9e9ba0045a74c73108dc6 Mon Sep 17 00:00:00 2001 From: Luther Wen Xu Date: Fri, 24 Apr 2020 15:51:25 +0800 Subject: [PATCH] drone: Add caching on Build, Test, Lint pipeline --- .drone.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.drone.yml b/.drone.yml index 8d4ff4f..811c02b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,14 +5,27 @@ steps: image: golang:1.14 commands: - go build ./... + volumes: + - name: deps + path: /go - name: Test image: golang:1.14 commands: - go test ./... + volumes: + - name: deps + path: /go - name: Lint image: golangci/golangci-lint:v1.25.0 commands: - golangci-lint run -v + volumes: + - name: deps + path: /go + +volumes: +- name: deps + temp: {} --- kind: pipeline