Skip to content

Commit

Permalink
skip version upgrade test on v0.x.x, there might be no tag on github …
Browse files Browse the repository at this point in the history
…repo
  • Loading branch information
lonegunmanb committed Jan 19, 2023
1 parent 8c88c23 commit 81e253e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions upgradetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ func unwrap(t interface{}) interface{} {
}

func moduleUpgrade(t *testing.T, owner string, repo string, moduleFolderRelativeToRoot string, newModulePath string, opts terraform.Options, currentMajorVer int) error {
if currentMajorVer == 0 {
return SkipV0Error
}
latestTag, err := getLatestTag(owner, repo, currentMajorVer)
if err != nil {
return err
Expand Down

0 comments on commit 81e253e

Please sign in to comment.