goshorly/.woodpecker/0-pre.yml
Phil 9675dfe346
Some checks failed
ci/woodpecker/push/10-build-latest unknown status
ci/woodpecker/push/0-pre Pipeline failed
Changed CI Workflow
2025-04-05 20:44:37 +02:00

24 lines
No EOL
617 B
YAML

steps:
- name: check-format
image: golang
environment:
CGO_ENABLED: 1
commands:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
- go test -race $(go list ./... | grep -v /vendor/)
when:
- event: [push, cron]
branch: [main, develop]
- event: pull_request
- name: check-sec
image: golang
commands:
- go install github.com/securego/gosec/v2/cmd/gosec@latest
- go get -v -d .
- gosec ./...
when:
- event: [push, cron]
branch: [main, develop]
- event: pull_request