Allow ResultsParser to fail on non-nunit xml files
parent
05a00ef5ac
commit
56059672d4
|
@ -22,9 +22,13 @@ const ResultsCheck = {
|
||||||
files.map(async filepath => {
|
files.map(async filepath => {
|
||||||
if (!filepath.endsWith('.xml')) return;
|
if (!filepath.endsWith('.xml')) return;
|
||||||
core.info(`Processing file ${filepath}...`);
|
core.info(`Processing file ${filepath}...`);
|
||||||
const fileData = await ResultsParser.parseResults(path.join(artifactsPath, filepath));
|
try {
|
||||||
core.info(fileData.summary);
|
const fileData = await ResultsParser.parseResults(path.join(artifactsPath, filepath));
|
||||||
runs.push(fileData);
|
core.info(fileData.summary);
|
||||||
|
runs.push(fileData);
|
||||||
|
} catch (error: any) {
|
||||||
|
core.warning(`Failed to parse ${filepath}: ${error.message}`);
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue