Cleanup
parent
51f4a1bf7a
commit
91d9893c3a
File diff suppressed because one or more lines are too long
|
@ -58,7 +58,12 @@ class ResultsCheck {
|
||||||
const title = runSummary.summary;
|
const title = runSummary.summary;
|
||||||
const summary = await ResultsCheck.renderSummary(runs);
|
const summary = await ResultsCheck.renderSummary(runs);
|
||||||
const details = await ResultsCheck.renderDetails(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}`);
|
core.info(`Posting results for ${headSha}`);
|
||||||
const createCheckRequest = {
|
const createCheckRequest = {
|
||||||
|
|
|
@ -11,8 +11,7 @@ class ResultsParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info(`Trying to open ${filepath}`);
|
core.info(`Trying to open ${filepath}`);
|
||||||
const rawFile = await fs.promises.readFile(filepath, 'utf8');
|
const file = await fs.promises.readFile(filepath, 'utf8');
|
||||||
const file = rawFile.replace('/github/workspace/', '');
|
|
||||||
const results = xmljs.xml2js(file, { compact: true });
|
const results = xmljs.xml2js(file, { compact: true });
|
||||||
core.info(`File ${filepath} parsed...`);
|
core.info(`File ${filepath} parsed...`);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue