test
This commit is contained in:
parent
51137677ce
commit
c54789f0b9
1 changed files with 23 additions and 0 deletions
23
.drone.yml
23
.drone.yml
|
@ -19,3 +19,26 @@ steps:
|
||||||
- go install github.com/securego/gosec/v2/cmd/gosec@latest
|
- go install github.com/securego/gosec/v2/cmd/gosec@latest
|
||||||
- go get -v -d .
|
- go get -v -d .
|
||||||
- gosec ./...
|
- gosec ./...
|
||||||
|
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
name: default2
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
base: /go
|
||||||
|
path: src/gitea.hackmi.ch/Phil/goshorly
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: check-format
|
||||||
|
image: golang
|
||||||
|
commands:
|
||||||
|
- go fmt $(go list ./... | grep -v /vendor/)
|
||||||
|
- 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 ./...
|
Loading…
Reference in a new issue