fix: Fix CI when
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
PapaTutuWawa 2024-01-13 17:59:18 +01:00
parent 183e77ea61
commit f802efb6bd

View File

@ -1,8 +1,3 @@
x-anchors:
golang_filter: &golang_filter
- path:
include: [ "**/*.go" ]
steps: steps:
build: build:
image: "golang:1.21.5-alpine" image: "golang:1.21.5-alpine"
@ -10,11 +5,13 @@ steps:
- go build ./cmd/rio - go build ./cmd/rio
- go test $(go list ./... | grep -v /vendor/) - go test $(go list ./... | grep -v /vendor/)
when: when:
- <<: *golang_filter - path:
include: [ "**/*.go" ]
lint: lint:
image: "golang:1.21.5-alpine" image: "golang:1.21.5-alpine"
commands: commands:
- go fmt $(go list ./... | grep -v /vendor/) - go fmt $(go list ./... | grep -v /vendor/)
- go vet $(go list ./... | grep -v /vendor/) - go vet $(go list ./... | grep -v /vendor/)
when: when:
- <<: *golang_filter - path:
include: [ "**/*.go" ]