Skip to content

Commit

Permalink
dont run testSet on github action
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Dec 26, 2020
1 parent 63f8269 commit 1ffb695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions color_test.go
Expand Up @@ -67,6 +67,11 @@ func TestSet(t *testing.T) {
Enable = true
fmt.Println("support color:", SupportColor())
fmt.Println("test color.Set() on OS:", runtime.GOOS)
if os.Getenv("GITHUB_ACTION") != "" {
fmt.Println("Skip run the tests on Github Action")
return
}

num, err := Set(FgGreen)
is.True(num > 0)
is.NoError(err)
Expand Down

0 comments on commit 1ffb695

Please sign in to comment.