Skip to content

Commit cbddf45

Browse files
authored
fix: E2e testing (#550)
* add context * add context * fix amplify configure * fix ci config * fix ci config * fix ci config * fix ci config * fix ci config * fix: use release branch for swift app
1 parent 3f7bf28 commit cbddf45

File tree

5 files changed

+181
-180
lines changed

5 files changed

+181
-180
lines changed

.circleci/config.base.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,21 @@ jobs:
195195
<<: *defaults
196196
executor: << parameters.os >>
197197
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
204213
- run: *install_cli
205214
- run:
206215
name: Run e2e tests
@@ -287,24 +296,18 @@ workflows:
287296
build_test_deploy:
288297
jobs:
289298
- build:
290-
name: build-<< matrix.os >>
291-
matrix:
292-
parameters:
293-
os: [l, m]
299+
os: l
294300
- test:
295301
name: test-<< matrix.os >>
296302
matrix:
297303
parameters:
298304
os: [l, w]
299305
requires:
300-
- build-l
306+
- build
301307
- publish_to_local_registry:
302-
name: publish_to_local_registry-<< matrix.os >>
303-
matrix:
304-
parameters:
305-
os: [l, m]
308+
os: l
306309
requires:
307-
- build-<< matrix.os >>
310+
- build
308311
filters:
309312
branches:
310313
only:
@@ -316,7 +319,7 @@ workflows:
316319
- cleanup-resources
317320
os: l
318321
requires:
319-
- publish_to_local_registry-l
322+
- publish_to_local_registry
320323
post-steps:
321324
- run: *cleanup_e2e
322325
filters:

0 commit comments

Comments
 (0)