2021-03-13 02:46:17 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-02-18 20:07:31 +00:00
|
|
|
- name: gosec security analysis
|
|
|
|
image: securego/gosec
|
|
|
|
commands:
|
|
|
|
- gosec ./...
|
|
|
|
- name: staticcheck analysis
|
|
|
|
image: golang
|
|
|
|
commands:
|
|
|
|
- go install honnef.co/go/tools/cmd/staticcheck
|
|
|
|
- "$(go env GOPATH)/bin/staticcheck"
|
2021-03-13 02:48:58 +00:00
|
|
|
- name: build, test and benchmark
|
2021-03-13 02:46:17 +00:00
|
|
|
image: golang
|
|
|
|
commands:
|
2022-02-18 20:07:31 +00:00
|
|
|
- go build -race
|
2021-03-13 02:46:17 +00:00
|
|
|
- go test
|
2021-03-13 02:48:58 +00:00
|
|
|
- go test -bench=.
|