yarn build

pull/286/head
Gabriel Le Breton 2024-11-07 22:50:39 -05:00
parent c43bdc7bed
commit 9b7d89c09f
No known key found for this signature in database
GPG Key ID: F1C2F88E084E4EF1
2 changed files with 6 additions and 1 deletions

5
dist/index.js generated vendored
View File

@ -1015,6 +1015,11 @@ const ResultsCheck = {
return;
core.info(`Processing file ${filepath}...`);
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));
core.info(fileData.summary);
runs.push(fileData);

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long