test
This commit is contained in:
parent
c54789f0b9
commit
eb791428e5
1 changed files with 6 additions and 9 deletions
15
.drone.yml
15
.drone.yml
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
kind: pipeline
|
||||
name: default
|
||||
name: check
|
||||
|
||||
workspace:
|
||||
base: /go
|
||||
|
@ -20,9 +21,9 @@ steps:
|
|||
- go get -v -d .
|
||||
- gosec ./...
|
||||
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
name: default2
|
||||
name: build
|
||||
|
||||
workspace:
|
||||
base: /go
|
||||
|
@ -36,9 +37,5 @@ steps:
|
|||
- go vet $(go list ./... | grep -v /vendor/)
|
||||
- go test -race $(go list ./... | grep -v /vendor/)
|
||||
|
||||
- name: check-sec
|
||||
image: golang
|
||||
commands:
|
||||
- go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||
- go get -v -d .
|
||||
- gosec ./...
|
||||
depends_on:
|
||||
- check
|
Loading…
Reference in a new issue