From 0b323dbbd76eb0ca362ae77537d79cf4a57584f7 Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 19 Jul 2025 20:02:27 -0700 Subject: [PATCH] diagnostics --- .github/workflows/pr_checks.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/pr_checks.yml b/.github/workflows/pr_checks.yml index 1e9f45b91..5f18537b2 100644 --- a/.github/workflows/pr_checks.yml +++ b/.github/workflows/pr_checks.yml @@ -29,6 +29,23 @@ jobs: - name: Run tests run: npm test + env: + DEBUG_CLI_TESTS: "1" + + - name: Show test logs on failure (Windows) + if: failure() && runner.os == 'Windows' + run: | + echo "=== Node.js version ===" + node --version + echo "=== NPM version ===" + npm --version + echo "=== Working directory ===" + pwd + echo "=== dist/index.js exists? ===" + if (Test-Path dist/index.js) { echo "Yes" } else { echo "No" } + echo "=== First 10 lines of dist/index.js ===" + if (Test-Path dist/index.js) { Get-Content dist/index.js -First 10 } + shell: pwsh - name: Run linting run: npm run lint