@@ -135,7 +135,15 @@ jobs:
135135 install_lint_build :
136136 << : *defaults
137137 steps :
138+ - restore_cache :
139+ keys :
140+ - &source-cache source-v1-{{ .Branch }}-{{ .Revision }}
138141 - checkout
142+ - save_cache :
143+ key : *source-cache
144+ paths :
145+ - " .git"
146+
139147 - restore_cache :
140148 keys :
141149 - v2-npm-cache-{{ checksum "package.json" }}
@@ -161,7 +169,15 @@ jobs:
161169 << : *defaults
162170 parallelism : 4 # Run tests across 4 containers
163171 steps :
172+ - restore_cache :
173+ keys :
174+ - &source-cache source-v1-{{ .Branch }}-{{ .Revision }}
164175 - checkout
176+ - save_cache :
177+ key : *source-cache
178+ paths :
179+ - " .git"
180+
165181 - setup_remote_docker :
166182 docker_layer_caching : true
167183 - attach_workspace :
@@ -178,7 +194,15 @@ jobs:
178194 << : *windows_big
179195 parallelism : 2 # Run tests across 2 containers
180196 steps :
197+ - restore_cache :
198+ keys :
199+ - &source-cache source-v1-{{ .Branch }}-{{ .Revision }}
181200 - checkout
201+ - save_cache :
202+ key : *source-cache
203+ paths :
204+ - " .git"
205+
182206 - install_node_npm :
183207 node_version : << parameters.node_version >>
184208 - setup_npm_user
@@ -187,9 +211,10 @@ jobs:
187211 - run :
188212 name : Run Windows tests in parallel
189213 command : |
214+ echo "PWD: $PWD"
190215 GLOB=$(circleci tests glob "test/windows/**/*.spec.ts")
191216 echo "GLOB: $GLOB"
192- GLOB_SED=$(echo $GLOB | sed s#$(pwd)\\\\\ ##g | sed 's#\\\\#/#g')
217+ GLOB_SED=$(echo $GLOB | sed s#$(pwd)\\\\##g | sed 's#\\\\#/#g')
193218 echo "GLOB_SED: $GLOB_SED"
194219 LIST_TEST=$(npx jest --listTests --config test/windows/jest.config.js)
195220 echo "LIST_TEST: $LIST_TEST"
@@ -207,7 +232,15 @@ jobs:
207232 << : *windows_big
208233 parallelism : 2 # Run tests across 2 containers
209234 steps :
235+ - restore_cache :
236+ keys :
237+ - &source-cache source-v1-{{ .Branch }}-{{ .Revision }}
210238 - checkout
239+ - save_cache :
240+ key : *source-cache
241+ paths :
242+ - " .git"
243+
211244 - install_node_npm :
212245 node_version : << parameters.node_version >>
213246 - setup_npm_user
0 commit comments