Skip to content

Commit

Permalink
chore: separate lint scripts from lint-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
psmarcin committed Dec 29, 2020
1 parent 41331e7 commit f86a00b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f86a00b

Please sign in to comment.