21 lines
581 B
YAML
21 lines
581 B
YAML
kind: pipeline
|
|
name: default
|
|
|
|
steps:
|
|
- name: test
|
|
image: golang
|
|
commands:
|
|
- go version
|
|
- go get ./...
|
|
- go build ./...
|
|
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.23.6
|
|
- golangci-lint run --enable dupl --enable goconst --enable gocritic --enable misspell --enable prealloc --enable unconvert --enable unparam
|
|
- go test -v -race -coverprofile=coverage.txt ./...
|
|
|
|
- name: coverage
|
|
image: plugins/codecov
|
|
settings:
|
|
token:
|
|
from_secret: codecov-token
|
|
files:
|
|
- coverage.txt |