File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,17 @@ commands:
15
15
type : string
16
16
platform :
17
17
type : string
18
+ govet :
19
+ type : string
20
+ default : " "
18
21
steps :
19
22
- run :
20
23
name : " Run go tests"
21
24
command : |
22
25
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
23
26
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
24
27
echo $PACKAGE_NAMES
25
- << parameters.cmd >> --format=short-verbose --junitfile $TEST_RESULTS_PATH/go-getter/gotestsum-report.xml -- -p 2 -cover -coverprofile=<< parameters.platform >>_cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
28
+ << parameters.cmd >> --format=short-verbose --junitfile $TEST_RESULTS_PATH/go-getter/gotestsum-report.xml -- -p 2 -cover -race -vet=<< parameters.govet >> - coverprofile=<< parameters.platform >>_cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
26
29
27
30
jobs :
28
31
linux-tests :
@@ -140,6 +143,9 @@ jobs:
140
143
- run-gotests :
141
144
cmd : " ./gotestsum.exe"
142
145
platform : " win"
146
+ # Otherwise gcc is required for race detector
147
+ # See https://github.com/golang/go/issues/27089
148
+ govet : " off"
143
149
144
150
# Save coverage report parts
145
151
- persist_to_workspace :
You can’t perform that action at this time.
0 commit comments