You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Multi-platform testing**: Linux, Windows, and macOS support
9
10
-**Multi-version Node.js matrix**: Test across Node.js 20, 22, and 24
10
11
-**Flexible configuration**: Customizable test scripts, timeouts, and artifact uploads
11
12
-**Memory optimization**: Configured heap sizes for CI and local environments
12
13
-**Cross-platform compatibility**: Handles Windows and POSIX path differences
13
14
14
-
**For socket-registry-specific package testing tools**, see `socket-registry/docs/CI_TESTING_TOOLS.md` and `socket-registry/docs/PACKAGE_TESTING_GUIDE.md`. These tools (`validate:packages`, `validate:ci`) are specific to socket-registry's package override structure.
15
+
**🚨 Socket-registry-specific tools**: The `validate:packages` and `validate:ci` scripts are specific to socket-registry's package override structure and not applicable to other Socket projects. See `socket-registry/docs/CI_TESTING_TOOLS.md` for details.
15
16
16
17
## Workflow Structure
17
18
18
19
### Centralized CI Workflow
19
20
20
-
**🚨 MANDATORY**: Use `SocketDev/socket-registry/.github/workflows/ci.yml@main` for consistent CI across all Socket projects.
21
+
**🚨 MANDATORY**: Use `SocketDev/socket-registry/.github/workflows/ci.yml@<SHA>` with full commit SHA for consistent CI across all Socket projects.
21
22
22
23
**Key Features:**
23
24
- Matrix testing across Node.js versions and operating systems
@@ -34,7 +35,7 @@ Located at `.github/workflows/test.yml`, this workflow calls socket-registry's r
**Note**: For projects still using local reusable workflows (`.github/workflows/_reusable-test.yml`), migrate to socket-registry's centralized workflow.
49
+
**🚨 CRITICAL**: Never use `@main` - always use the full 40-character commit SHA. Get the SHA with: `cd /path/to/socket-registry && git rev-parse main`
49
50
50
51
## Configuration Options
51
52
@@ -92,11 +93,11 @@ The CLI relies on compiled TypeScript outputs in `dist/` directory. Tests will f
92
93
93
94
## Best Practices
94
95
95
-
### 1. Use Centralized Workflow
96
+
### 1. Use Centralized CI Workflow
96
97
97
-
Always use socket-registry's centralized CI workflow for consistency:
98
+
Always use socket-registry's centralized CI workflow with full commit SHA:
- **Memory optimization**: Aligned with socket-registry patterns
230
231
- **Build requirements**: Pre-test builds are CLI-specific
231
232
232
-
**Socket-registry-specific tools**: The `validate:packages` and `validate:ci` scripts in socket-registry are specific to its package override structure and not applicable to CLI projects. See `socket-registry/docs/CI_TESTING_TOOLS.md` and `socket-registry/docs/PACKAGE_TESTING_GUIDE.md` for details.
233
+
**🚨 Socket-registry-specific tools**: The `validate:packages` and `validate:ci` scripts are specific to socket-registry's package override structure and not applicable to other Socket projects. See `socket-registry/docs/CI_TESTING_TOOLS.md` for details.
233
234
234
-
For consistency across Socket projects, follow the patterns established in socket-registry/CLAUDE.md and documented here.
235
+
For consistency across Socket projects, follow the patterns established in `socket-registry/CLAUDE.md`.
0 commit comments