mirror of
https://codeberg.org/woodpecker-plugins/go-plugin.git
synced 2024-11-14 02:25:38 +01:00
23 lines
381 B
YAML
23 lines
381 B
YAML
when:
|
|
- event: [pull_request, tag, cron]
|
|
- event: push
|
|
branch:
|
|
- ${CI_REPO_DEFAULT_BRANCH}
|
|
- 'renovate/*'
|
|
|
|
variables:
|
|
- &golang "golang:1.22"
|
|
|
|
steps:
|
|
vendor:
|
|
image: *golang
|
|
commands: go mod vendor
|
|
|
|
lint:
|
|
image: golangci/golangci-lint:v1.57-alpine
|
|
commands: golangci-lint run
|
|
|
|
test:
|
|
image: *golang
|
|
commands: go test --cover ./...
|