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
**Note for CI**: Nx caching requires proper dependency management. Tests depend on build outputs, so ensure packages are built before running tests. The `yarn postinstall` step must run even when node_modules are cached.
83
-
84
-
If you encounter TypeScript module resolution errors in CI, you can disable Nx caching by:
82
+
### CI Caching
83
+
84
+
BitGoJS CI uses both GitHub Actions cache and Nx cache for optimal performance:
85
+
86
+
**GitHub Actions Cache**:
87
+
- Caches `node_modules` and `modules/*/node_modules`
88
+
- Caches `.nx/cache` and `modules/*/dist` directories
89
+
- Cache keys include source file hashes for proper invalidation
90
+
91
+
**Nx Cache**:
92
+
- Automatically enabled in CI (via `useNx: true` in lerna.json)
93
+
- Caches build outputs and test results
94
+
- Respects task dependencies (tests depend on builds)
95
+
96
+
**Skipping Cache**:
97
+
- Add the `SKIP_CACHE` label to a PR to bypass all caching
98
+
- This forces fresh installs and builds
99
+
- When `SKIP_CACHE` is used:
100
+
- GitHub Actions cache is not restored
101
+
- Nx caching is disabled (`NX_SKIP_NX_CACHE=true`)
0 commit comments