go-plugin/.woodpecker.yaml

23 lines
381 B
YAML
Raw Permalink Normal View History

when:
- event: [pull_request, tag, cron]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
2023-11-08 20:04:23 +01:00
- 'renovate/*'
2023-01-08 03:53:03 +01:00
variables:
- &golang "golang:1.21"
2023-01-08 03:53:03 +01:00
steps:
vendor:
2023-01-08 03:53:03 +01:00
image: *golang
commands: go mod vendor
lint:
image: golangci/golangci-lint:v1.55-alpine
2023-01-08 03:53:03 +01:00
commands: golangci-lint run
test:
2023-01-08 03:53:03 +01:00
image: *golang
commands: go test --cover ./...