2021-07-23 02:00:02 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2021-11-15 20:15:16 +01:00
|
|
|
- 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
|
2021-08-02 23:14:16 +02:00
|
|
|
|
2021-11-15 20:15:16 +01:00
|
|
|
- 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
|
2021-08-02 23:14:16 +02:00
|
|
|
|
2021-11-15 20:15:16 +01:00
|
|
|
- name: vet
|
|
|
|
image: golang:1.17
|
|
|
|
commands:
|
|
|
|
- go vet ./pkg/...
|
|
|
|
volumes:
|
|
|
|
- name: env_cache
|
|
|
|
path: /go
|
2021-08-02 23:14:16 +02:00
|
|
|
|
|
|
|
volumes:
|
2021-11-15 20:15:16 +01:00
|
|
|
- name: env_cache
|
|
|
|
host:
|
|
|
|
path: /tmp/drone/envs/vegvisir
|