File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,19 @@ export function getTestResults(
217217 } ;
218218 const resultsPath = path . join ( runnerTemp , `matlabTestResults_${ runId } _${ actionName } .json` ) ;
219219
220+ try {
221+ const fs = require ( 'fs' ) ;
222+ console . log ( `Contents of runnerTemp directory (${ runnerTemp } ):` ) ;
223+ const files = fs . readdirSync ( runnerTemp ) ;
224+ files . forEach ( ( file : string ) => {
225+ const filePath = path . join ( runnerTemp , file ) ;
226+ const stats = fs . statSync ( filePath ) ;
227+ console . log ( `- ${ file } (${ stats . isDirectory ( ) ? 'directory' : 'file' } , ${ stats . size } bytes)` ) ;
228+ } ) ;
229+ } catch ( listError ) {
230+ console . error ( `Error listing files in runnerTemp directory: ${ listError } ` ) ;
231+ }
232+
220233 if ( existsSync ( resultsPath ) ) {
221234 try {
222235 const testArtifact = JSON . parse ( readFileSync ( resultsPath , "utf8" ) ) ;
@@ -250,6 +263,8 @@ export function getTestResults(
250263 ) ;
251264 }
252265 }
266+ } else {
267+ console . warn ( `Test results summary file ${ resultsPath } does not exist.` ) ;
253268 }
254269
255270 return testResultsData ;
You can’t perform that action at this time.
0 commit comments