From f2292ef8fb24ff5d7dcfb6871a181948e9d5e800 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Mon, 15 Nov 2021 20:15:16 +0100 Subject: [PATCH] [fix] Updated .drone.yml config --- .drone.yml | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/.drone.yml b/.drone.yml index 47fff11..ff60a69 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,32 +3,33 @@ type: docker name: default steps: -- name: static_check - image: golang:1.16 - commands: - - go get honnef.co/go/tools/cmd/staticcheck - - staticcheck ./pkg/... - volumes: - - name: gopath - path: /go + - name: static_check + image: golang:1.17 + commands: + - go install honnef.co/go/tools/cmd/staticcheck@latest + - staticcheck -checks all ./pkg/... + volumes: + - name: env_cache + path: /go -- name: lint - image: golang:1.16 - commands: - - go get golang.org/x/lint/golint - - golint -set_exit_status ./pkg/... - volumes: - - name: gopath - path: /go + - name: lint + image: golang:1.17 + commands: + - go install golang.org/x/lint/golint@latest + - golint -set_exit_status ./pkg/... + volumes: + - name: env_cache + path: /go -- name: vet - image: golang:1.16 - commands: - - go vet ./pkg/... - volumes: - - name: gopath - path: /go + - name: vet + image: golang:1.17 + commands: + - go vet ./pkg/... + volumes: + - name: env_cache + path: /go volumes: -- name: gopath - temp: {} \ No newline at end of file + - name: env_cache + host: + path: /tmp/drone/envs/vegvisir \ No newline at end of file