From 183e77ea61014c5a4d8d9063126a9374ddbfd1ee Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Sat, 13 Jan 2024 17:58:21 +0100 Subject: [PATCH] feat: Restrict the CI to Go files --- .woodpecker.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 185a3aa..8801cc5 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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/) \ No newline at end of file + - go vet $(go list ./... | grep -v /vendor/) + when: + - <<: *golang_filter \ No newline at end of file