diff --git a/dist/index.js b/dist/index.js index df75f076..415c454c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -375,11 +375,17 @@ class TestReporter { core.warning(`No file matches path ${this.path}`); return []; } + core.info(`Processing test results for check run ${name}`); const results = []; for (const { file, content } of files) { - core.info(`Processing test results from ${file}`); - const tr = yield parser.parse(file, content); - results.push(tr); + try { + const tr = yield 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}`); const createResp = yield this.octokit.rest.checks.create(Object.assign({ head_sha: this.context.sha, name, status: 'in_progress', output: { diff --git a/src/main.ts b/src/main.ts index 935c7697..825794ff 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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}`)