25 lines
488 B
YAML
25 lines
488 B
YAML
pipeline:
|
|
lint:
|
|
image: golangci/golangci-lint:latest-alpine
|
|
pull: true
|
|
commands:
|
|
- golangci-lint run ./...
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
branch:
|
|
- main
|
|
|
|
test:
|
|
image: golang:1.18
|
|
pull: true
|
|
commands:
|
|
- "go test -ldflags='-w -s' -tags 'netgo osusergo' -cover -coverprofile=coverage.out -covermode=atomic -json ./... > report.json"
|
|
when:
|
|
event:
|
|
- push
|
|
- pull_request
|
|
branch:
|
|
- main
|