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}...`);
|
core.info(`Processing file ${filepath}...`);
|
||||||
try {
|
try {
|
||||||
const content = fs.readFileSync(path.join(artifactsPath, filepath), 'utf8');
|
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
|
// noinspection ExceptionCaughtLocallyJS
|
||||||
throw new Error('File does not appear to be a NUnit XML file');
|
throw new Error('File does not appear to be a NUnit XML file');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue