@@ -58,7 +58,7 @@ install_cli_with_local_codegen: &install_cli
58
58
startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
59
59
setNpmRegistryUrlToLocal
60
60
changeNpmGlobalPath
61
- npm install -g @aws-amplify/cli-internal
61
+ npm install -g @aws-amplify/cli-internal@11.0.0-rc.e5f00c392.0
62
62
amplify -v
63
63
npm list --global --depth=1
64
64
unsetNpmRegistryUrl
@@ -184,7 +184,7 @@ jobs:
184
184
name : Run e2e tests
185
185
command : |
186
186
cd packages/amplify-codegen-e2e-tests
187
- yarn e2e --maxWorkers=3 $TEST_SUITE
187
+ yarn e2e --forceExit -- maxWorkers=3 $TEST_SUITE
188
188
no_output_timeout : 20m
189
189
- store_test_results :
190
190
path : packages/amplify-codegen-e2e-tests/
@@ -195,18 +195,27 @@ jobs:
195
195
<< : *defaults
196
196
executor : << parameters.os >>
197
197
steps :
198
- - attach_workspace :
199
- at : ./
200
- - restore_cache :
201
- key : amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-<< parameters.os >>
202
- - restore_cache :
203
- key : amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}-<< parameters.os >>
198
+ - checkout
199
+ - run : yarn config set workspaces-experimental true
200
+ - run : yarn cache clean --force
201
+ - run : yarn run production-build
202
+ - run :
203
+ name : Publish to verdaccio
204
+ command : |
205
+ source .circleci/local_publish_helpers.sh
206
+ startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
207
+ setNpmRegistryUrlToLocal
208
+ loginToLocalRegistry
209
+ git config user.email [email protected]
210
+ git config user.name "Doesnt Matter"
211
+ yarn publish-to-verdaccio
212
+ unsetNpmRegistryUrl
204
213
- run : *install_cli
205
214
- run :
206
215
name : Run e2e tests
207
216
command : |
208
217
cd packages/amplify-codegen-e2e-tests
209
- yarn e2e --maxWorkers=3 $TEST_SUITE
218
+ yarn e2e --forceExit -- maxWorkers=3 $TEST_SUITE
210
219
no_output_timeout : 20m
211
220
- store_test_results :
212
221
path : packages/amplify-codegen-e2e-tests/
@@ -232,7 +241,7 @@ jobs:
232
241
name : Run e2e tests
233
242
command : |
234
243
cd packages/amplify-codegen-e2e-tests
235
- yarn e2e --maxWorkers=3 $TEST_SUITE
244
+ yarn e2e --forceExit -- maxWorkers=3 $TEST_SUITE
236
245
no_output_timeout : 20m
237
246
- store_test_results :
238
247
path : packages/amplify-codegen-e2e-tests/
@@ -287,24 +296,18 @@ workflows:
287
296
build_test_deploy :
288
297
jobs :
289
298
- build :
290
- name : build-<< matrix.os >>
291
- matrix :
292
- parameters :
293
- os : [l, m]
299
+ os : l
294
300
- test :
295
301
name : test-<< matrix.os >>
296
302
matrix :
297
303
parameters :
298
304
os : [l, w]
299
305
requires :
300
- - build-l
306
+ - build
301
307
- publish_to_local_registry :
302
- name : publish_to_local_registry-<< matrix.os >>
303
- matrix :
304
- parameters :
305
- os : [l, m]
308
+ os : l
306
309
requires :
307
- - build-<< matrix.os >>
310
+ - build
308
311
filters :
309
312
branches :
310
313
only :
@@ -316,7 +319,7 @@ workflows:
316
319
- cleanup-resources
317
320
os : l
318
321
requires :
319
- - publish_to_local_registry-l
322
+ - publish_to_local_registry
320
323
post-steps :
321
324
- run : *cleanup_e2e
322
325
filters :
0 commit comments