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
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: build, test and benchmark
|
||||||
image: golang
|
image: golang
|
||||||
commands:
|
commands:
|
||||||
|
- go build -race
|
||||||
- go test
|
- go test
|
||||||
- go test -bench=.
|
- go test -bench=.
|
||||||
- go build
|
|
||||||
|
Loading…
Reference in New Issue
Block a user