rio/.woodpecker.yml
Alexander "PapaTutuWawa 183e77ea61
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
feat: Restrict the CI to Go files
2024-01-13 17:58:21 +01:00

20 lines
459 B
YAML

x-anchors:
golang_filter: &golang_filter
- path:
include: [ "**/*.go" ]
steps:
build:
image: "golang:1.21.5-alpine"
commands:
- go build ./cmd/rio
- go test $(go list ./... | grep -v /vendor/)
when:
- <<: *golang_filter
lint:
image: "golang:1.21.5-alpine"
commands:
- go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/)
when:
- <<: *golang_filter