Skip to content

Commit

Permalink
fix(tests): store-types create --all adding logging around environm…
Browse files Browse the repository at this point in the history
…ent.
  • Loading branch information
spbsoluble committed Oct 20, 2023
1 parent eacc0ef commit 4218d27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/storeTypes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,10 +216,13 @@ func createAllStoreTypes(t *testing.T, storeTypes map[string]interface{}) {
// check if I'm running inside a Github Action
testArgs := []string{"store-types", "create", "--all"}
isGhAction := os.Getenv("GITHUB_ACTIONS")
t.Log("GITHUB_ACTIONS: ", isGhAction)
if isGhAction == "true" {
ghBranch := os.Getenv("GITHUB_REF")
testArgs = append(testArgs, "--git-ref", ghBranch)
t.Log("GITHUB_REF: ", ghBranch)
}
t.Log("testArgs: ", testArgs)

// Attempt to get the AWS store type because it comes with the product
testCmd.SetArgs(testArgs)
Expand Down

0 comments on commit 4218d27

Please sign in to comment.