Skip to content

Commit e9fa2f5

Browse files
authored
Merge pull request #216 from dorny/skip-list-tracked-files
Skip listing of files if error parsing is disabled
2 parents 33529f7 + 3963c53 commit e9fa2f5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

dist/index.js

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ class TestReporter {
9191
: new LocalFileProvider(this.name, pattern)
9292

9393
const parseErrors = this.maxAnnotations > 0
94-
const trackedFiles = await inputProvider.listTrackedFiles()
94+
const trackedFiles = parseErrors ? await inputProvider.listTrackedFiles() : []
9595
const workDir = this.artifact ? undefined : normalizeDirPath(process.cwd(), true)
9696

97-
core.info(`Found ${trackedFiles.length} files tracked by GitHub`)
97+
if (parseErrors) core.info(`Found ${trackedFiles.length} files tracked by GitHub`)
9898

9999
const options: ParseOptions = {
100100
workDir,

0 commit comments

Comments
 (0)