diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 694add9..be29ab7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,5 +24,14 @@ jobs: - name: Install Dependencies run: npm install + - name: Set Environment Variables + run: echo "NODE_ENV=test" >> $GITHUB_ENV + - name: Run Tests - run: npm test \ No newline at end of file + run: npm test + + - name: Debug on Failure + if: failure() + run: | + echo "Tests failed. Debugging logs:" + cat test-results.log || echo "No logs found"