From ab3191995a66497b8f6e4ba54b13877e02dde8cf Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 19 Apr 2024 15:39:02 +0200 Subject: [PATCH] =?UTF-8?q?.woodpecker/check.yml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/check.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .woodpecker/check.yml 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