mirror of
https://codeberg.org/woodpecker-plugins/go-plugin.git
synced 2024-11-16 11:25:38 +01:00
92ff2797fa
Reviewed-on: https://codeberg.org/woodpecker-plugins/go-plugin/pulls/6 Co-authored-by: pat-s <patrick.schratz@gmail.com> Co-committed-by: pat-s <patrick.schratz@gmail.com>
22 lines
360 B
YAML
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.50-alpine
|
|
commands: golangci-lint run
|
|
|
|
test:
|
|
image: *golang
|
|
commands: go test --cover ./...
|