diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa192f4..1a3d43a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/setup-go@v1 with: - go-version: '1.13' + go-version: '1.14' - run: make test @@ -20,3 +20,15 @@ jobs: uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} #required + + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: golangci-lint + uses: golangci/golangci-lint-action@v1 + with: + # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. + version: v1.26 + args: -c .golangci.yaml diff --git a/README.md b/README.md index f87eb8a..7af44c9 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Go Report Card](https://goreportcard.com/badge/github.com/voi-go/svc?style=flat-square)](https://goreportcard.com/report/github.com/voi-go/svc) [![Go Doc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/voi-go/svc) +[![codecov](https://codecov.io/gh/voi-oss/svc/branch/master/graph/badge.svg)](https://codecov.io/gh/voi-oss/svc) SVC is a framework that creates a long-running service process, managing the live-cycle of workers. It comes with "batteries-included" for convenience and diff --git a/go.mod b/go.mod index f1fc670..5709f96 100644 --- a/go.mod +++ b/go.mod @@ -17,4 +17,4 @@ require ( gopkg.in/go-playground/validator.v9 v9.30.0 ) -go 1.13 +go 1.14 diff --git a/vendor/modules.txt b/vendor/modules.txt index d04d206..4afaf02 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,27 +1,37 @@ # github.com/beorn7/perks v1.0.1 github.com/beorn7/perks/quantile # github.com/blendle/zapdriver v1.3.1 +## explicit github.com/blendle/zapdriver # github.com/caarlos0/env v3.5.0+incompatible +## explicit github.com/caarlos0/env # github.com/cespare/xxhash/v2 v2.1.0 github.com/cespare/xxhash/v2 # github.com/davecgh/go-spew v1.1.1 github.com/davecgh/go-spew/spew # github.com/go-playground/locales v0.13.0 +## explicit github.com/go-playground/locales github.com/go-playground/locales/currency # github.com/go-playground/universal-translator v0.16.0 +## explicit github.com/go-playground/universal-translator # github.com/golang/protobuf v1.3.2 github.com/golang/protobuf/proto +# github.com/google/go-cmp v0.3.1 +## explicit +# github.com/kr/pretty v0.1.0 +## explicit # github.com/leodido/go-urn v1.2.0 +## explicit github.com/leodido/go-urn # github.com/matttproud/golang_protobuf_extensions v1.0.1 github.com/matttproud/golang_protobuf_extensions/pbutil # github.com/pmezard/go-difflib v1.0.0 github.com/pmezard/go-difflib/difflib # github.com/prometheus/client_golang v1.2.1 +## explicit github.com/prometheus/client_golang/prometheus github.com/prometheus/client_golang/prometheus/internal github.com/prometheus/client_golang/prometheus/promhttp @@ -36,13 +46,16 @@ github.com/prometheus/procfs github.com/prometheus/procfs/internal/fs github.com/prometheus/procfs/internal/util # github.com/stretchr/testify v1.4.0 +## explicit github.com/stretchr/testify/assert github.com/stretchr/testify/require # go.uber.org/atomic v1.4.0 go.uber.org/atomic # go.uber.org/multierr v1.2.0 +## explicit go.uber.org/multierr # go.uber.org/zap v1.11.0 +## explicit go.uber.org/zap go.uber.org/zap/buffer go.uber.org/zap/internal/bufferpool @@ -51,7 +64,12 @@ go.uber.org/zap/internal/exit go.uber.org/zap/zapcore # golang.org/x/sys v0.0.0-20191010194322-b09406accb47 golang.org/x/sys/windows +# gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 +## explicit +# gopkg.in/go-playground/assert.v1 v1.2.1 +## explicit # gopkg.in/go-playground/validator.v9 v9.30.0 +## explicit gopkg.in/go-playground/validator.v9 # gopkg.in/yaml.v2 v2.2.2 gopkg.in/yaml.v2