diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ef37e0..9a8dcc1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: run: GO111MODULE=off go get golang.org/x/tools/cmd/goimports - name: Lint - run: make lint + run: make lint-ci - name: Build run: make build diff --git a/Makefile b/Makefile index d97513f..da4d7a8 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,11 @@ IMAGE_TAG=gcr.io/$(PROJECT_ID)/$(NAME) dev: modd -lint: +lint-ci: gofmt -w -s . goimports -w . + +lint: lint-ci golangci-lint run --fix dependencies: