From c43bdc7bedf13864cfadd7e901800ba3be86d5ae Mon Sep 17 00:00:00 2001 From: Gabriel Le Breton Date: Thu, 7 Nov 2024 22:49:59 -0500 Subject: [PATCH] Add file check for NUnit XML format before parsing --- src/model/results-check.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/model/results-check.ts b/src/model/results-check.ts index 15e3a19..88e87e6 100644 --- a/src/model/results-check.ts +++ b/src/model/results-check.ts @@ -23,6 +23,11 @@ const ResultsCheck = { if (!filepath.endsWith('.xml')) return; core.info(`Processing file ${filepath}...`); try { + const content = fs.readFileSync(path.join(artifactsPath, filepath), 'utf8'); + if (!content.includes('