Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
  • Loading branch information
piotrpio committed Apr 22, 2024
1 parent 0c9d013 commit 625ca5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nats_test.go
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 625ca5f

Please sign in to comment.