diff --git a/.circleci/config.yml b/.circleci/config.yml index be54a16..86e1b33 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,7 @@ jobs: docker_layer_caching: true steps: - checkout + - run: make lint - run: make test build: executor: docker-publisher diff --git a/Makefile b/Makefile index e2f7a87..036f3c2 100644 --- a/Makefile +++ b/Makefile @@ -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