@@ -185,18 +185,22 @@ jobs:
185185 parallelism : 2 # Run tests across 2 containers
186186 steps :
187187 - checkout
188- - install_node_npm :
189- node_version : << parameters.node_version >>
188+ - run :
189+ name : Configure npm cache
190+ command : npm config set cache .npm-cache
190191 - restore_cache :
191192 keys :
192193 - v1-win-dependencies-{{ checksum "package.json" }}
193194 - v1-win-dependencies- # Fallback key for partial cache restoration
195+ - install_node_npm :
196+ node_version : << parameters.node_version >>
194197 - setup_npm_user
195198 - run : npm ci --loglevel verbose
196199 - save_cache :
197200 key : v1-win-dependencies-{{ checksum "package.json" }}
198201 paths :
199202 - node_modules
203+ - .npm-cache
200204
201205 - run : docker version
202206 - run :
@@ -206,7 +210,6 @@ jobs:
206210 name : Run Windows tests in parallel
207211 command : |
208212 TEST=$(circleci tests glob "test/windows/**/*.spec.ts" | circleci tests split --split-by=timings | sed 's#\\\\#/#g')
209- echo "TEST: $TEST"
210213 npm run test-jest-windows -- $TEST --reporters=default --reporters=jest-junit
211214 environment :
212215 JEST_JUNIT_OUTPUT_DIR : ' ./reports/junit'
@@ -218,10 +221,22 @@ jobs:
218221 parallelism : 2 # Run tests across 2 containers
219222 steps :
220223 - checkout
224+ - run :
225+ name : Configure npm cache
226+ command : npm config set cache .npm-cache
227+ - restore_cache :
228+ keys :
229+ - v1-win-dependencies-{{ checksum "package.json" }}
230+ - v1-win-dependencies- # Fallback key for partial cache restoration
221231 - install_node_npm :
222232 node_version : << parameters.node_version >>
223233 - setup_npm_user
224234 - run : npm ci --loglevel verbose
235+ - save_cache :
236+ key : v1-win-dependencies-{{ checksum "package.json" }}
237+ paths :
238+ - node_modules
239+ - .npm-cache
225240 # make docker appear to be broken.
226241 - run : " function docker() { return 1; }"
227242 - run :
0 commit comments