.woodpecker/check.yml hinzugefügt

This commit is contained in:
Phil 2024-04-19 15:39:02 +02:00
parent ba3d45c97a
commit ab3191995a

14
.woodpecker/check.yml Normal file
View file

@ -0,0 +1,14 @@
steps:
- name: check-format
image: golang:alpine
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 ./...