Update env command and add descriptions to others

Этот коммит содержится в:
Jayson Smith 2020-02-06 19:32:29 -07:00
родитель 184e8d01ee
коммит c82857d7da

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

@ -13,31 +13,38 @@ executors:
commands: commands:
env: env:
description: "Setup environment variables"
steps: steps:
- run: | - run:
export GOROOT=/usr/local/go command: |
export GOPATH=$HOME/go export GOROOT=/usr/local/go
export GO111MODULE=on export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH export GO111MODULE=on
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
vet: vet:
description: "Run go vet"
steps: steps:
- run: go vet github.com/cucumber/godog - run: go vet github.com/cucumber/godog
- run: go vet github.com/cucumber/godog/gherkin - run: go vet github.com/cucumber/godog/gherkin
- run: go vet github.com/cucumber/godog/colors - run: go vet github.com/cucumber/godog/colors
fmt: fmt:
description: "Run go fmt"
steps: steps:
- run: test -z "$(go fmt ./...)" - run: test -z "$(go fmt ./...)"
godog: godog:
description: "Run godog"
steps: steps:
- run: godog -f progress - run: godog -f progress
go_test: go_test:
description: "Run go test"
steps: steps:
- run: go test -v -race -coverprofile=coverage.txt -covermode=atomic - run: go test -v -race -coverprofile=coverage.txt -covermode=atomic
all: all:
description: "Run all commands against godog code"
steps: steps:
- env - env
- vet - vet