Skip to content

Commit 77c7900

Browse files
committed
debug(ci): add comprehensive build diagnostics for Windows troubleshooting
Added logging to test-setup-script to diagnose Windows build issues: - Show working directory - List files before build - Run build - List files in dist/ after build - Verify cli.js exists This will help identify whether: 1. Build is creating files in the wrong location 2. Files are being created but deleted 3. Build is failing silently 4. There's a working directory or path issue Uses cross-platform commands (ls -la || dir) to work on all OSes.
1 parent 12ccac7 commit 77c7900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
name: Run CI Pipeline
4141
uses: SocketDev/socket-registry/.github/workflows/ci.yml@d8ff3b0581d799466cfbf150f715c1a4bf9f84a5 # 2025-10-23
4242
with:
43-
test-setup-script: 'pnpm --filter @socketsecurity/cli run build'
43+
test-setup-script: 'echo "=== Build Setup Debug ===" && pwd && echo "Before build:" && ls -la packages/cli/ 2>/dev/null || dir packages\\cli\\ && pnpm --filter @socketsecurity/cli run build && echo "After build:" && ls -la packages/cli/dist/ 2>/dev/null || dir packages\\cli\\dist\\ && echo "Checking cli.js:" && ls -la packages/cli/dist/cli.js 2>/dev/null || dir packages\\cli\\dist\\cli.js && echo "=== Build Setup Complete ==="'
4444
lint-script: 'pnpm --filter @socketsecurity/cli run check'
4545
type-check-script: 'pnpm --filter @socketsecurity/cli run type'
4646
test-script: ${{ inputs.skip-tests && 'echo "Tests skipped"' || 'pnpm --filter @socketsecurity/cli run test:unit' }}

0 commit comments

Comments
 (0)