Add back 1.12 and 1.13 with some formatting

Этот коммит содержится в:
Jayson Smith 2020-02-06 20:45:47 -07:00
родитель 5fbb84e69c
коммит bf08467b98

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

@ -4,6 +4,12 @@ executors:
exec_go_1_11: exec_go_1_11:
docker: docker:
- image: circleci/golang:1.11.13 - image: circleci/golang:1.11.13
exec_go_1_12:
docker:
- image: circleci/golang:1.12.16
exec_go_1_13:
docker:
- image: circleci/golang:1.13.7
commands: commands:
vet: vet:
@ -12,26 +18,21 @@ commands:
- 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" description: "Run go fmt"
steps: steps:
- run: test -z "$(go fmt ./...)" - run: test -z "$(go fmt ./...)"
install_cmd: install_cmd:
steps: steps:
- run: GO111MODULE=off go install ./cmd/godog - run: GO111MODULE=off go install ./cmd/godog
godog: godog:
description: "Run godog" description: "Run godog"
steps: steps:
- run: godog -f progress - run: godog -f progress
go_test: go_test:
description: "Run 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" description: "Run all commands against godog code"
steps: steps:
@ -48,9 +49,21 @@ jobs:
executor: exec_go_1_11 executor: exec_go_1_11
steps: steps:
- all - all
go1_12:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_12
steps:
- all
go1_13:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go1_13
steps:
- all
workflows: workflows:
version: 2 version: 2
test: test:
jobs: jobs:
- go1_11 - go1_11
- go1_12
- go1_13