File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ async function mergeReports() {
5252 }
5353
5454 fs . writeFileSync ( path . join ( reportsDir , 'report.xml' ) , xml )
55+
56+ /**
57+ * Grab the previous test runs exit code. This makes it so that merge and upload
58+ * the reports regardless of the test run exit code and then use the previous test
59+ * exit code to properly inform ci of the test run status
60+ */
61+ const exitCode = parseInt ( process . env . PREVIOUS_TEST_EXIT_CODE || '0' , 10 )
62+ process . exit ( exitCode )
5563}
5664
5765mergeReports ( )
58-
59- /**
60- * Grab the previous test runs exit code. This makes it so that merge and upload
61- * the reports regardless of the test run exit code and then use the previous test
62- * exit code to properly inform ci of the test run status
63- */
64- const exitCode = parseInt ( process . env . PREVIOUS_TEST_EXIT_CODE || '0' , 10 )
65- process . exit ( exitCode )
You can’t perform that action at this time.
0 commit comments