fix test only in PR from forked repo
@@ -339,6 +339,7 @@ func TestPostResultSet_withEmptyResponse(t *testing.T) {
func TestReportResults(t *testing.T) {
cleanup := setupEnvs(map[string]string{
"GITHUB_ACTION": "",
+ "GITHUB_EVENT_PATH": "",
})
defer cleanup()
filteredResultSet := new(reviewdog.FilteredResultMap)
@@ -387,6 +388,7 @@ reviewdog: No results found for "name2". 1 results found outside diff.
func TestReportResults_inGitHubAction(t *testing.T) {
cleanup := setupEnvs(map[string]string{
"GITHUB_ACTION": "xxx",
+ "GITHUB_EVENT_PATH": "",
})
defer cleanup()
filteredResultSet := new(reviewdog.FilteredResultMap)
@@ -412,6 +414,7 @@ func TestReportResults_inGitHubAction(t *testing.T) {
func TestReportResults_noResultsInDiff(t *testing.T) {
cleanup := setupEnvs(map[string]string{
"GITHUB_ACTION": "",
+ "GITHUB_EVENT_PATH": "",
})
defer cleanup()
filteredResultSet := new(reviewdog.FilteredResultMap)
