Skip to content

Commit

Permalink
disable go vet on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
radeksimko committed Mar 31, 2021
1 parent 49b4113 commit fa86e8e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ commands:
type: string
platform:
type: string
govet:
type: string
default: ""
steps:
- run:
name: "Run go tests"
command: |
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
echo $PACKAGE_NAMES
<< parameters.cmd >> --format=short-verbose --junitfile $TEST_RESULTS_PATH/go-getter/gotestsum-report.xml -- -p 2 -cover -race -coverprofile=<< parameters.platform >>_cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
<< 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
jobs:
linux-tests:
Expand Down Expand Up @@ -140,6 +143,9 @@ jobs:
- run-gotests:
cmd: "./gotestsum.exe"
platform: "win"
# Otherwise gcc is required for race detector
# See https://github.com/golang/go/issues/27089
govet: "off"

# Save coverage report parts
- persist_to_workspace:
Expand Down

0 comments on commit fa86e8e

Please sign in to comment.