mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Skip listing of files if error parsing is disabled
This commit is contained in:
parent
33529f74ef
commit
3963c5302f
2 changed files with 5 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue