vegvisir/.drone.yml

34 lines
548 B
YAML
Raw Normal View History

2021-07-23 02:00:02 +02:00
kind: pipeline
type: docker
name: default
steps:
- name: static_check
2022-04-16 14:42:59 +02:00
image: golang:1.18
2021-07-23 02:00:02 +02:00
commands:
2022-04-16 14:42:59 +02:00
- go install honnef.co/go/tools/cmd/staticcheck@latest
- staticcheck ./pkg/...
volumes:
- name: gopath
path: /go
- name: lint
2022-04-16 14:42:59 +02:00
image: golang:1.18
commands:
2022-04-16 14:42:59 +02:00
- go install golang.org/x/lint/golint@latest
- golint -set_exit_status ./pkg/...
volumes:
- name: gopath
path: /go
- name: vet
2022-04-16 14:42:59 +02:00
image: golang:1.18
commands:
- go vet ./pkg/...
volumes:
- name: gopath
path: /go
volumes:
- name: gopath
2022-04-16 14:42:59 +02:00
temp: {}