Skip to content

Commit

Permalink
update go version, add coverage badge and lint to CI (#22)
Browse files Browse the repository at this point in the history
* add code coverage badge

* add lint to CI

* bump go version

* fix path to linter yaml

* add new line at the end of the ci file
  • Loading branch information
jkonarze authored May 29, 2020
1 parent e1cb9f0 commit 39a33df
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@ jobs:

- uses: actions/setup-go@v1
with:
go-version: '1.13'
go-version: '1.14'

- run: make test

- name: Upload coverage to Codecov
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ require (
gopkg.in/go-playground/validator.v9 v9.30.0
)

go 1.13
go 1.14
18 changes: 18 additions & 0 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 39a33df

Please sign in to comment.