forked from cucumber/godog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
83 lines (78 loc) · 1.9 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: 2.1
orbs:
codecov: codecov/[email protected]
executors:
exec_go_1_13:
docker:
- image: circleci/golang:1.13.15
exec_go_1_14:
docker:
- image: circleci/golang:1.14.12
exec_go_1_15:
docker:
- image: circleci/golang:1.15.5
commands:
fmt:
description: "Run gofmt"
steps:
- run: gofmt -d -e . 2>&1 | tee outfile && test -z "$(cat outfile)" && rm outfile
lint:
description: "Run golint"
steps:
- run: go get -u golang.org/x/lint/golint
- run: golint -set_exit_status ./...
- run: cd _examples && golint -set_exit_status ./... && cd ..
vet:
description: "Run go vet"
steps:
- run: go vet ./...
- run: cd _examples && go vet ./... && cd ..
go_test:
description: "Run go test"
steps:
- run: sed -i 's#github.com/cucumber/godog/internal/formatters_test#/internal/formatters_test#g' internal/formatters/formatter-tests/*/*
- run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- run: cd _examples && go test -v -race ./... && cd ..
godog:
description: "Run godog"
steps:
- run: go install ./cmd/godog
- run: godog -f progress --strict
coverage:
description: "Report on code coverage"
steps:
- codecov/upload:
file: "coverage.txt"
all:
description: "Run all commands against godog code"
steps:
- checkout
- fmt
- lint
- vet
- go_test
- godog
- coverage
jobs:
go1_13:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_13
steps:
- all
go1_14:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_14
steps:
- all
go1_15:
working_directory: /go/src/github.com/cucumber/godog
executor: exec_go_1_15
steps:
- all
workflows:
version: 2
test:
jobs:
- go1_13
- go1_14
- go1_15