go-plugin/.woodpecker.yaml
2023-10-25 10:43:48 +00:00

22 lines
360 B
YAML

when:
- event: [pull_request, tag, cron]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &golang "golang:1.18"
steps:
vendor:
image: *golang
commands: go mod vendor
lint:
image: golangci/golangci-lint:v1.55-alpine
commands: golangci-lint run
test:
image: *golang
commands: go test --cover ./...