21 lines
391 B
YAML
21 lines
391 B
YAML
---
|
|
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- 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"
|
|
- name: build, test and benchmark
|
|
image: golang
|
|
commands:
|
|
- go build -race
|
|
- go test
|
|
- go test -bench=.
|