diff --git a/.woodpecker/check.yml b/.woodpecker/check.yml new file mode 100644 index 0000000..018781c --- /dev/null +++ b/.woodpecker/check.yml @@ -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 ./... \ No newline at end of file