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
|
kind: pipeline
|
||||||
name: default
|
name: check
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
|
@ -20,9 +21,9 @@ steps:
|
||||||
- go get -v -d .
|
- go get -v -d .
|
||||||
- gosec ./...
|
- gosec ./...
|
||||||
|
|
||||||
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: default2
|
name: build
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
|
@ -36,9 +37,5 @@ steps:
|
||||||
- go vet $(go list ./... | grep -v /vendor/)
|
- go vet $(go list ./... | grep -v /vendor/)
|
||||||
- go test -race $(go list ./... | grep -v /vendor/)
|
- go test -race $(go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
- name: check-sec
|
depends_on:
|
||||||
image: golang
|
- check
|
||||||
commands:
|
|
||||||
- go install github.com/securego/gosec/v2/cmd/gosec@latest
|
|
||||||
- go get -v -d .
|
|
||||||
- gosec ./...
|
|
Loading…
Reference in a new issue