chizap/.woodpecker/test.yml
Renovate 6d5599e3f2
All checks were successful
ci/woodpecker/push/test Pipeline was successful
chore(deps): update golangci/golangci-lint docker tag to v1.58 (#26)
Reviewed-on: #26
Co-authored-by: Renovate <renovate@dwysokinski.me>
Co-committed-by: Renovate <renovate@dwysokinski.me>
2024-05-04 04:44:59 +00:00

32 lines
548 B
YAML

when:
- event: [pull_request]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &go_image 'golang:1.21'
steps:
test:
image: *go_image
group: test
pull: true
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
lint:
image: golangci/golangci-lint:v1.58
pull: true
group: test
commands:
- golangci-lint run
check-go-mod:
image: *go_image
group: test
pull: true
commands:
- go mod tidy
- git diff --exit-code go.mod