18 lines
411 B
YAML
18 lines
411 B
YAML
steps:
|
|
build:
|
|
image: "golang:1.21.5-alpine"
|
|
commands:
|
|
- go build ./cmd/rio
|
|
- go test $(go list ./... | grep -v /vendor/)
|
|
when:
|
|
- path:
|
|
include: [ "**/*.go" ]
|
|
lint:
|
|
image: "golang:1.21.5-alpine"
|
|
commands:
|
|
- go fmt $(go list ./... | grep -v /vendor/)
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
when:
|
|
- path:
|
|
include: [ "**/*.go" ]
|