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 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 = {
|
||||
|
|
|
@ -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...`);
|
||||
|
||||
|
|
Loading…
Reference in New Issue