Skip to content

Commit

Permalink
Skip listing of files if error parsing is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dorny committed Nov 30, 2022
1 parent 33529f7 commit 3963c53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ class TestReporter {
: new LocalFileProvider(this.name, pattern)

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

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

const options: ParseOptions = {
workDir,
Expand Down

0 comments on commit 3963c53

Please sign in to comment.