Skip to content

Commit

Permalink
Merge pull request #216 from dorny/skip-list-tracked-files
Browse files Browse the repository at this point in the history
Skip listing of files if error parsing is disabled
  • Loading branch information
dorny authored Nov 30, 2022
2 parents 33529f7 + 3963c53 commit e9fa2f5
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 e9fa2f5

Please sign in to comment.