Skip to content

Commit

Permalink
Run linter in CI using workflows
Browse files Browse the repository at this point in the history
We need to separately fix all of the issues that this has identified.
  • Loading branch information
dcarley committed Jun 4, 2018
1 parent 45cc696 commit 33b7296
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
version: 2

workflows:
version: 2
ci:
jobs:
- test
- lint

jobs:
build:
test:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/circleci/circleci-cli
steps:
- checkout
- run: make test
lint:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/circleci/circleci-cli
steps:
- checkout
- run:
name: Install
command: |
go get -u github.com/alecthomas/gometalinter
gometalinter --install
- run: make lint
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ test:
.PHONY: cover
coverage:
go test -coverprofile=coverage.txt -covermode=count ./...

.PHONY: lint
lint:
gometalinter --vendor ./...

0 comments on commit 33b7296

Please sign in to comment.