Merge pull request #179 from vasanthdharmaraj/main

Suppress "Processing test results from" log
This commit is contained in:
Michal Dorner 2022-11-30 18:54:29 +01:00 committed by GitHub
commit 33529f74ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

12
dist/index.js generated vendored
View file

@ -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: {

View file

@ -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}`)