Skip to content

Commit

Permalink
Merge pull request #179 from vasanthdharmaraj/main
Browse files Browse the repository at this point in the history
Suppress "Processing test results from" log
  • Loading branch information
dorny authored Nov 30, 2022
2 parents 396026f + ac8472f commit 33529f7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
12 changes: 9 additions & 3 deletions dist/index.js

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

11 changes: 8 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,16 @@ class TestReporter {
return []
}

core.info(`Processing test results for check run ${name}`)
const results: TestRunResult[] = []
for (const {file, content} of files) {
core.info(`Processing test results from ${file}`)
const tr = await parser.parse(file, content)
results.push(tr)
try {
const tr = await parser.parse(file, content)
results.push(tr)
} catch (error) {
core.error(`Processing test results from ${file} failed`)
throw error
}
}

core.info(`Creating check run ${name}`)
Expand Down

0 comments on commit 33529f7

Please sign in to comment.