drone: Add caching on Build, Test, Lint pipeline
continuous-integration/drone/push Build is passing Details

master
Luther Wen Xu 2020-04-24 15:51:25 +07:00
parent 3bb5187e39
commit 2d158a5bd0
Signed by: chanbakjsd
GPG Key ID: B7D77E3E9D102B70
1 changed files with 13 additions and 0 deletions

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