Add golint and refactor godog install

Этот коммит содержится в:
Jayson Smith 2020-02-06 20:59:51 -07:00
родитель d874d38bad
коммит 0152c420cf

Просмотреть файл

@ -22,12 +22,16 @@ commands:
description: "Run go fmt" description: "Run go fmt"
steps: steps:
- run: test -z "$(go fmt ./...)" - run: test -z "$(go fmt ./...)"
install_cmd: lint:
description: "Run golint"
steps: 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: godog:
description: "Run godog" description: "Run godog"
steps: steps:
- run: GO111MODULE=off go install ./cmd/godog
- run: godog -f progress - run: godog -f progress
go_test: go_test:
description: "Run go test" description: "Run go test"
@ -39,6 +43,7 @@ commands:
- checkout - checkout
- vet - vet
- fmt - fmt
- lint
- install_cmd - install_cmd
- godog - godog
- go_test - go_test