Skip to content

Commit

Permalink
Merge pull request #4312 from projectdiscovery/skip-example-test-gh
Browse files Browse the repository at this point in the history
ignore example test in ci
  • Loading branch information
tarunKoyalwar authored Oct 30, 2023
2 parents fc2ad66 + 5997be7 commit 9e98e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func ExampleThreadSafeNucleiEngine() {
func TestMain(m *testing.M) {
// this file only contains testtables examples https://go.dev/blog/examples
// and actual functionality test are in sdk_test.go
if os.Getenv("GH_ACTION") != "" {
if os.Getenv("GH_ACTION") != "" || os.Getenv("CI") != "" {
// no need to run this test on github actions
return
}
Expand Down

0 comments on commit 9e98e27

Please sign in to comment.