yarn build
parent
c43bdc7bed
commit
9b7d89c09f
|
@ -1015,6 +1015,11 @@ const ResultsCheck = {
|
||||||
return;
|
return;
|
||||||
core.info(`Processing file ${filepath}...`);
|
core.info(`Processing file ${filepath}...`);
|
||||||
try {
|
try {
|
||||||
|
const content = fs.readFileSync(path_1.default.join(artifactsPath, filepath), 'utf8');
|
||||||
|
if (!content.includes('<test-results') && !content.includes('<test-run')) {
|
||||||
|
// noinspection ExceptionCaughtLocallyJS
|
||||||
|
throw new Error('File does not appear to be a NUnit XML file');
|
||||||
|
}
|
||||||
const fileData = yield results_parser_1.default.parseResults(path_1.default.join(artifactsPath, filepath));
|
const fileData = yield results_parser_1.default.parseResults(path_1.default.join(artifactsPath, filepath));
|
||||||
core.info(fileData.summary);
|
core.info(fileData.summary);
|
||||||
runs.push(fileData);
|
runs.push(fileData);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue