drone: Add caching on Build, Test, Lint pipeline

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 image: golang:1.14
commands: commands:
- go build ./... - go build ./...
volumes:
- name: deps
path: /go
- name: Test - name: Test
image: golang:1.14 image: golang:1.14
commands: commands:
- go test ./... - go test ./...
volumes:
- name: deps
path: /go
- name: Lint - name: Lint
image: golangci/golangci-lint:v1.25.0 image: golangci/golangci-lint:v1.25.0
commands: commands:
- golangci-lint run -v - golangci-lint run -v
volumes:
- name: deps
path: /go
volumes:
- name: deps
temp: {}
--- ---
kind: pipeline kind: pipeline