Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <[email protected]>
  • Loading branch information
piotrpio committed Apr 29, 2024
1 parent 2dfdcbd commit 4c9d085
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ func checkErrChannel(t *testing.T, errCh chan error) {
}

func TestVersionMatchesTag(t *testing.T) {
tag := os.Getenv("GITHUB_ACTIONS")
if tag == "" {
refType := os.Getenv("GITHUB_REF_TYPE")
if refType != "tag" {
t.SkipNow()
}
tag := os.Getenv("GITHUB_REF_NAME")
// We expect a tag of the form vX.Y.Z. If that's not the case,
// we need someone to have a look. So fail if first letter is not
// a `v`
Expand Down

0 comments on commit 4c9d085

Please sign in to comment.