2021-07-23 02:00:02 +02:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2021-08-02 23:14:16 +02:00
|
|
|
- name: static_check
|
|
|
|
image: golang:1.16
|
2021-07-23 02:00:02 +02:00
|
|
|
commands:
|
2021-08-02 23:14:16 +02:00
|
|
|
- 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: {}
|