when: - event: [pull_request, tag, cron] - event: push branch: - ${CI_REPO_DEFAULT_BRANCH} - 'renovate/*' variables: - &golang "golang:1.22" - &golangci-lint "golangci/golangci-lint:v1.59-alpine" - &reviewdog-golangci-lint "woodpeckerci/plugin-reviewdog-golangci-lint:1.57" steps: vendor: image: *golang commands: go mod vendor review-go: image: *reviewdog-golangci-lint settings: token: from_secret: reviewdog_token when: event: pull_request lint: image: *golangci-lint commands: golangci-lint run --timeout 5m when: event: [push, tag, cron] test: image: *golang commands: go test --cover ./...