pull/97/head
David Finol 2021-02-25 19:22:15 -06:00
parent 51f4a1bf7a
commit 91d9893c3a
3 changed files with 8 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -58,7 +58,12 @@ class ResultsCheck {
const title = runSummary.summary;
const summary = await ResultsCheck.renderSummary(runs);
const details = await ResultsCheck.renderDetails(runs);
const annotations = runSummary.extractAnnotations();
const rawAnnotations = runSummary.extractAnnotations();
const annotations = rawAnnotations.map(rawAnnotation => {
const annotation = rawAnnotation;
annotation.path = rawAnnotation.path.replace('/github/workspace/', '');
return annotation;
});
core.info(`Posting results for ${headSha}`);
const createCheckRequest = {

View File

@ -11,8 +11,7 @@ class ResultsParser {
}
core.info(`Trying to open ${filepath}`);
const rawFile = await fs.promises.readFile(filepath, 'utf8');
const file = rawFile.replace('/github/workspace/', '');
const file = await fs.promises.readFile(filepath, 'utf8');
const results = xmljs.xml2js(file, { compact: true });
core.info(`File ${filepath} parsed...`);