Skip to content

Commit

Permalink
add golangci-lint as linter
Browse files Browse the repository at this point in the history
give us some advices
  • Loading branch information
Pascal Bourdier committed Feb 28, 2020
1 parent c0ef597 commit c3f261b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
docker_layer_caching: true
steps:
- checkout
- run: make lint
- run: make test
build:
executor: docker-publisher
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ run: build
test:
docker run -ti -e GO111MODULE=on -v $$PWD:/go/src/github.com/contentful-labs/coredns-nodecache \
-w /go/src/github.com/contentful-labs/coredns-nodecache/ golang:1.13-stretch go test -v -mod=vendor ./...

lint:
docker run -ti -e GO111MODULE=on -v $$PWD:/go/src/github.com/contentful-labs/coredns-nodecache \
-w /go/src/github.com/contentful-labs/coredns-nodecache/ golangci/golangci-lint:v1.23.7 golangci-lint run

0 comments on commit c3f261b

Please sign in to comment.