From 0152c420cfa07b0eef6d1c9efa15d8ebe90ec3bd Mon Sep 17 00:00:00 2001 From: Jayson Smith Date: Thu, 6 Feb 2020 20:59:51 -0700 Subject: [PATCH] Add golint and refactor godog install --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f326ce0..2192b62 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,12 +22,16 @@ commands: description: "Run go fmt" steps: - run: test -z "$(go fmt ./...)" - install_cmd: + lint: + description: "Run golint" steps: - - run: GO111MODULE=off go install ./cmd/godog + - run: go get -u golang.org/x/lint/golint + - run: golint ./godog + - run: golint ./cmd/godog/main.go godog: description: "Run godog" steps: + - run: GO111MODULE=off go install ./cmd/godog - run: godog -f progress go_test: description: "Run go test" @@ -39,6 +43,7 @@ commands: - checkout - vet - fmt + - lint - install_cmd - godog - go_test