34 lines
525 B
YAML
34 lines
525 B
YAML
kind: pipeline
|
|
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: lint
|
|
image: golang:1.16
|
|
commands:
|
|
- go get golang.org/x/lint/golint
|
|
- golint -set_exit_status ./pkg/...
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
- name: vet
|
|
image: golang:1.16
|
|
commands:
|
|
- go vet ./pkg/...
|
|
volumes:
|
|
- name: gopath
|
|
path: /go
|
|
|
|
volumes:
|
|
- name: gopath
|
|
temp: {} |