Update src/model/results-check.ts
Co-authored-by: Koji Hasegawa <hasegawa@nowsprinting.com>pull/286/head
parent
9b7d89c09f
commit
cfdf16b18d
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue