pulumi/sdk/go/common/util/ciutil
Eng Zer Jun 19d84ef1f3
test: use `T.Setenv` to set env vars in tests (#10234)
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.

Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-07-24 10:41:44 +01:00
..
az_pipelines.go move pkg/util/ciutil -> sdk/go/common/util/ciutil 2020-03-18 15:43:31 -07:00
bitbucket_pipelines.go move pkg/util/ciutil -> sdk/go/common/util/ciutil 2020-03-18 15:43:31 -07:00
buildkite.go Added a buildkite detector for detecting the correct env vars in CI (#7933) 2021-11-15 09:10:07 -08:00
circleci.go move pkg/util/ciutil -> sdk/go/common/util/ciutil 2020-03-18 15:43:31 -07:00
codefresh.go move pkg/util/ciutil -> sdk/go/common/util/ciutil 2020-03-18 15:43:31 -07:00
detect.go add additional CI provider detection (#9715) 2022-05-27 10:49:18 -07:00
generic.go Add GitHub Actions detection and update the Pulumi CI escape hatch with more CI vars (#4758) 2020-06-08 17:24:12 -07:00
github_actions.go Use the GH webhook payload to parse PR details when CI system is GH Actions (#4817) 2020-06-15 12:49:09 -07:00
gitlab.go move pkg/util/ciutil -> sdk/go/common/util/ciutil 2020-03-18 15:43:31 -07:00
jenkins.go [ciutil] Correct system name of Jenkins CI (#5891) 2020-12-08 18:36:31 +00:00
systems.go add additional CI provider detection (#9715) 2022-05-27 10:49:18 -07:00
travis.go move pkg/util/ciutil -> sdk/go/common/util/ciutil 2020-03-18 15:43:31 -07:00
vars.go move pkg/util/ciutil -> sdk/go/common/util/ciutil 2020-03-18 15:43:31 -07:00
vars_test.go test: use `T.Setenv` to set env vars in tests (#10234) 2022-07-24 10:41:44 +01:00