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