From bb00760aa80a59cda9f2d96070a4d85dc441d714 Mon Sep 17 00:00:00 2001 From: Matthew Black Date: Sun, 20 Oct 2024 13:23:08 -0400 Subject: [PATCH] test: add tmate for debugging --- .github/workflows/main.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 482f7c23..a86cb46a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 0 # This ensures you have the full git history - name: Setup Node.js uses: actions/setup-node@v2 @@ -54,9 +56,22 @@ jobs: run: ps aux - run: yarn build - - run: yarn test + + - name: Debug - List Processes + run: ps aux + + - name: Run tests with detailed output + run: | + echo "::group::Detailed Test Output" + yarn test + echo "::endgroup::" - name: Get test coverage uses: coverallsapp/github-action@master with: - github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + github-token: ${{ secrets.GITHUB_TOKEN }} + + # Modified tmate step without the timeout-minutes option + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ failure() }}