File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,3 +12,11 @@ mkdir -p \
1212export GOCACHE=" ${cache_root} /go/build"
1313export GOMODCACHE=" ${cache_root} /go/pkg/mod"
1414export GOLANGCI_LINT_CACHE=" ${cache_root} /golangci-lint"
15+
16+ if [[ " ${BUILDKITE_STEP_KEY:- } " == " test" ]]; then
17+ # Hosted agents inject the pipeline org and API token into the step
18+ # environment. A subset of CLI tests exercise config precedence and must not
19+ # inherit those ambient overrides, or they resolve the live Buildkite org
20+ # instead of the fixture-backed test config.
21+ unset BUILDKITE_API_TOKEN BUILDKITE_ORGANIZATION_SLUG
22+ fi
Original file line number Diff line number Diff line change @@ -13,11 +13,9 @@ steps:
1313 - *mise_plugin
1414
1515 - name : " :go: test"
16+ key : test
1617 artifact_paths :
1718 - cover-tree.svg
18- env :
19- BUILDKITE_API_TOKEN : " "
20- BUILDKITE_ORGANIZATION_SLUG : " "
2119 commands :
2220 - go test -coverprofile cover.out ./...
2321 - go run github.com/nikolaydubina/go-cover-treemap@v1.5.1 -coverprofile cover.out > cover-tree.svg
You can’t perform that action at this time.
0 commit comments