added in static code analysis tools
This commit is contained in:
parent
b0b8ac2d5b
commit
714462c36f
11
.drone.yml
11
.drone.yml
@ -3,9 +3,18 @@ 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=.
|
||||
- go build
|
||||
|
Loading…
Reference in New Issue
Block a user