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 236b645
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()
}
tagName := os.Getenv("GITHUB_REF_NAME")

Check failure on line 101 in nats_test.go

View workflow job for this annotation

GitHub Actions / lint

tagName declared and not used

Check failure on line 101 in nats_test.go

View workflow job for this annotation

GitHub Actions / test (1.21)

tagName declared and not used

Check failure on line 101 in nats_test.go

View workflow job for this annotation

GitHub Actions / test (1.22)

tagName declared and not used
// 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 236b645

Please sign in to comment.