Skip to content

Commit 9a5a222

Browse files
committed
fix(ci): resolve dependency caching issue causing test failures
The CI was using cached pnpm dependencies that didn't match the updated pnpm-lock.yaml from commit f4d9a49. This caused test failures on both Ubuntu and Windows runners. Changes: - Clear dist directory before building to ensure clean build - Run 'pnpm install --frozen-lockfile' to match exact lockfile state - Keep existing Vite cache clearing This ensures CI always starts with the exact dependency versions specified in pnpm-lock.yaml, preventing cache-related test failures. Tests verified locally with the new setup command sequence.
1 parent 94350fd commit 9a5a222

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: 'rm -rf packages/cli/node_modules/.vite && pnpm --filter @socketsecurity/cli run build'
43+
test-setup-script: 'rm -rf packages/cli/node_modules/.vite packages/cli/dist && pnpm install --frozen-lockfile && pnpm --filter @socketsecurity/cli run build'
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)