Log filename if parsing fails

This commit is contained in:
Michal Dorner 2022-11-30 18:49:10 +01:00
parent b45fb8b405
commit ac8472f51a
No known key found for this signature in database
GPG key ID: 7325B8B59CA1B65C
2 changed files with 17 additions and 5 deletions

View file

@ -147,10 +147,16 @@ class TestReporter {
return []
}
core.info(`Processing test results for check run ${name}`)
const results: TestRunResult[] = []
for (const {file, content} of files) {
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}`)