Skip to content

Commit

Permalink
Update src/model/results-check.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Koji Hasegawa <[email protected]>
  • Loading branch information
GabLeRoux and nowsprinting authored Nov 8, 2024
1 parent 9b7d89c commit cfdf16b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/results-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ResultsCheck = {
core.info(`Processing file ${filepath}...`);
try {
const content = fs.readFileSync(path.join(artifactsPath, filepath), 'utf8');
if (!content.includes('<test-results') && !content.includes('<test-run')) {
if (!content.includes('<test-run')) {
// noinspection ExceptionCaughtLocallyJS
throw new Error('File does not appear to be a NUnit XML file');
}
Expand Down

0 comments on commit cfdf16b

Please sign in to comment.