feat: Restrict the CI to Go files
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
PapaTutuWawa 2024-01-13 17:58:21 +01:00
parent 3af531fdcc
commit 183e77ea61

View File

@ -1,11 +1,20 @@
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