From 58c141ef00ee582a4d4125469c4d296e75f63254 Mon Sep 17 00:00:00 2001 From: John Corser Date: Tue, 21 Sep 2021 14:43:48 -0400 Subject: [PATCH 1/9] chore: try win-e2e --- .circleci/config.base.yml | 448 +- .circleci/config.yml | 11662 ++++++++++++---- .../src/categories/hosting.ts | 4 +- packages/amplify-e2e-core/src/index.ts | 36 +- .../amplify-e2e-core/src/utils/nexpect.ts | 8 + scripts/split-e2e-tests.ts | 97 +- 6 files changed, 9705 insertions(+), 2550 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 1bf9452036a..45adfc840e3 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -1,24 +1,51 @@ version: 2.1 -orbs: - aws-ecr: circleci/aws-ecr@6.15.3 + machine: environment: PATH: '${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin' +executors: + windows: &windows-e2e-executor + machine: + image: 'windows-server-2019-vs2019:stable' + resource_class: 'windows.large' + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + + build_img: &build-executor + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + + linux: &linux-e2e-executor + docker: + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + node12: &node12 working_directory: ~/repo docker: - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large defaults: &defaults working_directory: ~/repo - docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> clean_e2e_resources: &clean_e2e_resources name: Cleanup resources @@ -48,7 +75,7 @@ run_e2e_tests: &run_e2e_tests startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal cd packages/amplify-e2e-tests - yarn run e2e --maxWorkers=3 $TEST_SUITE + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl no_output_timeout: 90m @@ -65,32 +92,63 @@ install_cli_from_local_registery: &install_cli_from_local_registery jobs: build: - <<: *node12 + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> steps: - checkout + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - install_yarn: + os: << parameters.os >> - run: yarn run production-build + - run: + name: Start verdaccio and package CLI + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + yarn pkg-all + unsetNpmRegistryUrl - save_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + paths: + - ~/repo/out + - save_cache: + key: amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} paths: - - ~/.cache + - ./**/node_modules + - ./node_modules + - save_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + paths: + - . - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh - - persist_to_workspace: - root: . - paths: . + # - persist_to_workspace: + # root: . + # paths: packages test: - <<: *node12 + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - - run: - name: Install Java - command: sudo apt-get update && sudo apt-get install default-jdk + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - install_java: + os: <> - run: name: Lint command: yarn lint @@ -102,18 +160,23 @@ jobs: command: yarn coverage mock_e2e_tests: - <<: *node12 + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - - run: - name: Install Java - command: sudo apt-get update && sudo apt-get install default-jdk + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - install_java: + os: <> - run: name: Run Transformer end-to-end tests with mock server - command: cd packages/amplify-util-mock/ && yarn e2e + command: | + cd packages/amplify-util-mock/ + yarn e2e no_output_timeout: 90m environment: JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml' @@ -126,7 +189,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - run: name: Publish to verdaccio command: | @@ -166,7 +231,8 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -189,7 +255,8 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Run GraphQL end-to-end tests command: cd packages/graphql-transformers-e2e-tests/ && yarn e2e --maxWorkers=3 @@ -205,6 +272,10 @@ jobs: at: ./ - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Update OS Packages command: sudo apt-get update @@ -224,8 +295,13 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: *install_cli_from_local_registery - run: *run_e2e_tests - run: *scan_e2e_test_artifacts @@ -239,39 +315,39 @@ jobs: steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_linux_e2e_tests: + done_with_pkg_e2e_tests: <<: *node12 steps: - run: echo 'Done with pkg CLI E2E Tests' amplify_e2e_tests_pkg_linux: - <<: *defaults - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - run: - name: Symlink Amplify packaged CLI - command: | - cd out - ln -sf amplify-pkg-linux amplify - echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV - source $BASH_ENV - amplify version - - run: *install_cli_from_local_registery - - run: *run_e2e_tests - - run: *scan_e2e_test_artifacts + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: path: packages/amplify-e2e-tests/amplify-e2e-reports - + - clean_e2e_resources: + os: << parameters.os >> amplify_migration_tests_v4: <<: *defaults @@ -279,7 +355,8 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -351,7 +428,8 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Update OS Packages command: sudo apt-get update @@ -376,10 +454,12 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Run tests migrating from latest CLI command: | + yarn pkg-all source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests @@ -398,7 +478,8 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: *install_cli_from_local_registery - run: command: | @@ -543,6 +624,10 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplify-unified-changelog-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -583,7 +668,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplfiy-pkg-tag-{{ .Branch }}-{{ .Revision }} - run: @@ -597,7 +684,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - run: name: 'Run cleanup script' command: | @@ -615,7 +704,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - run: name: 'Run cleanup script' command: | @@ -638,7 +729,10 @@ workflows: only: - master jobs: - - build + - build: + matrix: + parameters: + os: [windows, build_img] - publish_to_local_registry: requires: - build @@ -660,7 +754,10 @@ workflows: only: - master jobs: - - build + - build: + matrix: + parameters: + os: [build_img] - cleanup_resources: context: - cleanup-resources @@ -670,11 +767,20 @@ workflows: build_test_deploy: jobs: - - build + - build: + matrix: + parameters: + os: [build_img, windows] - test: + matrix: + parameters: + os: [build_img] requires: - - build + - build-build_img - mock_e2e_tests: + matrix: + parameters: + os: [build_img] requires: - build - graphql_e2e_tests: @@ -685,10 +791,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build + - build-build_img - mock_e2e_tests - integration_test: context: @@ -698,23 +805,25 @@ workflows: branches: only: - master + - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build + - build-build_img - mock_e2e_tests - publish_to_local_registry: filters: branches: only: - master + - win-e2e - beta - release - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build + - build-build_img - build_pkg_binaries: requires: - publish_to_local_registry @@ -726,6 +835,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - amplify_e2e_tests: @@ -734,39 +844,47 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: *clean_e2e_resources + # post-steps: + # - run: *clean_e2e_resources filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: + - build - publish_to_local_registry - done_with_node_e2e_tests: requires: - amplify_e2e_tests - - amplify_e2e_tests_pkg_linux: + - amplify_e2e_tests_pkg: + matrix: + parameters: + os: [windows] context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: - - run: *clean_e2e_resources filters: branches: only: + - win-e2e - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests + - build - build_pkg_binaries - - done_with_pkg_linux_e2e_tests: + - done_with_pkg_e2e_tests: + context: + - amplify-cli-ecr + - amplify-cli-aws-creds-< matrix.os >> requires: - - amplify_e2e_tests_pkg_linux + - amplify_e2e_tests_pkg - amplify_migration_tests_latest: context: - amplify-ecr-image-pull @@ -777,6 +895,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -791,6 +910,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -805,6 +925,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -819,6 +940,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -833,6 +955,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -873,7 +996,7 @@ workflows: - cleanup-resources - e2e-test-context requires: - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_migration_tests_latest - amplify_migration_tests_v4 - amplify_migration_tests_v4_30_0 @@ -888,7 +1011,7 @@ workflows: - mock_e2e_tests - graphql_e2e_tests - integration_test - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest @@ -902,6 +1025,7 @@ workflows: only: - release - master + - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ @@ -913,3 +1037,183 @@ workflows: branches: only: - release + +commands: + install_packaged_cli: + description: 'Install Amplify Packaged CLI to PATH' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Rename the Packaged CLI to amplify + command: | + # rename the command to amplify + cd $env:homedrive\$env:homepath\repo\out + mv amplify-pkg-win.exe amplify.exe + - run: + name: Move to CLI Binary to already existing PATH + command: | + # This is a Hack to make sure the Amplify CLI is in the PATH + cp $env:homedrive\$env:homepath\repo\out\amplify.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Symlink Amplify packaged CLI + command: | + cd out + ln -sf amplify-pkg-linux amplify + echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV + source $BASH_ENV + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + + install_yarn: + description: 'Install Amplify Packaged CLI to PATH' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: nvm install 12.22.5 + - run: nvm use 12.22.5 + - run: npm install -g yarn + - run: yarn dev-build + - run: yarn pkg-all + install_java: + description: 'Install Java on Linux and Docker images' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Install Java + command: | + sudo apt-get update && sudo apt-get install default-jdk + + run_e2e_tests: + description: 'Run Amplify E2E tests' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Run E2E tests + command: | + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $ENV:TEST_SUITE + no_output_timeout: 90m + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Run E2E tests + command: | + source $BASH_ENV + amplify version + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + no_output_timeout: 90m + scan_e2e_test_artifacts: + description: 'Scan And Cleanup E2E Test Artifacts' + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + clean_e2e_resources: + description: Cleanup resources + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: [*windows-e2e-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always + + - when: + condition: + or: + - equal: [*linux-e2e-executor, << parameters.os >>] + - equal: [*build-executor, << parameters.os >>] + steps: + - run: + name: Scan E2E artifacts + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always diff --git a/.circleci/config.yml b/.circleci/config.yml index 3df8618060e..52455906c44 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,31 +1,54 @@ # auto generated file. Edit config.base.yaml if you want to change version: 2.1 -orbs: - aws-ecr: circleci/aws-ecr@6.15.3 machine: environment: PATH: ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin +executors: + windows: + machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + build_img: + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + linux: + docker: + - image: public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux node12: working_directory: ~/repo - docker: &ref_0 - - image: circleci/node:12 - auth: - username: $DOCKERHUB_USERNAME - password: $DOCKERHUB_ACCESS_TOKEN + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large defaults: working_directory: ~/repo - docker: &ref_1 - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest - resource_class: large -clean_e2e_resources: &ref_7 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> +clean_e2e_resources: name: Cleanup resources command: | pwd cd packages/amplify-e2e-tests yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} working_directory: ~/repo -scan_e2e_test_artifacts: &ref_4 +scan_e2e_test_artifacts: name: Scan And Cleanup E2E Test Artifacts command: | if ! yarn ts-node .circleci/scan_artifacts.ts; then @@ -34,7 +57,7 @@ scan_e2e_test_artifacts: &ref_4 exit 1 fi when: always -run_e2e_tests: &ref_3 +run_e2e_tests: name: Run Amplify end-to-end tests command: | source .circleci/local_publish_helpers.sh @@ -44,10 +67,10 @@ run_e2e_tests: &ref_3 startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal cd packages/amplify-e2e-tests - yarn run e2e --maxWorkers=3 $TEST_SUITE + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl no_output_timeout: 90m -install_cli_from_local_registery: &ref_2 +install_cli_from_local_registery: name: Start verdaccio, install node CLI and amplify-app command: | source .circleci/local_publish_helpers.sh @@ -59,35 +82,59 @@ install_cli_from_local_registery: &ref_2 unsetNpmRegistryUrl jobs: build: - working_directory: ~/repo - docker: *ref_0 - resource_class: large + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> steps: - checkout + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - install_yarn: + os: << parameters.os >> - run: yarn run production-build + - run: + name: Start verdaccio and package CLI + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + yarn pkg-all + unsetNpmRegistryUrl - save_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + paths: + - ~/repo/out + - save_cache: + key: amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + paths: + - ./**/node_modules + - ./node_modules + - save_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} paths: - - ~/.cache + - . - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh - - persist_to_workspace: - root: . - paths: . test: - working_directory: ~/repo - docker: *ref_0 - resource_class: large + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - - run: - name: Install Java - command: sudo apt-get update && sudo apt-get install default-jdk + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - install_java: + os: <> - run: name: Lint command: yarn lint @@ -98,20 +145,23 @@ jobs: name: Collect code coverage command: yarn coverage mock_e2e_tests: - working_directory: ~/repo - docker: *ref_0 - resource_class: large + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - - run: - name: Install Java - command: sudo apt-get update && sudo apt-get install default-jdk + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - install_java: + os: <> - run: name: Run Transformer end-to-end tests with mock server - command: cd packages/amplify-util-mock/ && yarn e2e + command: | + cd packages/amplify-util-mock/ + yarn e2e no_output_timeout: 90m environment: JEST_JUNIT_OUTPUT: reports/junit/js-test-results.xml @@ -119,13 +169,16 @@ jobs: path: packages/amplify-util-mock/ publish_to_local_registry: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - run: name: Publish to verdaccio command: | @@ -160,13 +213,15 @@ jobs: - ~/repo/.amplify-pkg-version build_pkg_binaries: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -184,13 +239,17 @@ jobs: - ~/repo/out graphql_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Run GraphQL end-to-end tests command: >- @@ -203,13 +262,20 @@ jobs: path: packages/graphql-transformers-e2e-tests/ amplify_sudo_install_test: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Update OS Packages command: sudo apt-get update @@ -225,70 +291,112 @@ jobs: amplify version amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: &ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: - attach_workspace: at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - run: *ref_2 - - run: *ref_3 - - run: *ref_4 + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports done_with_node_e2e_tests: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_linux_e2e_tests: + done_with_pkg_e2e_tests: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - run: echo 'Done with pkg CLI E2E Tests' amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - steps: &ref_6 + steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - run: - name: Symlink Amplify packaged CLI - command: | - cd out - ln -sf amplify-pkg-linux amplify - echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV - source $BASH_ENV - amplify version - - run: *ref_2 - - run: *ref_3 - - run: *ref_4 + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> - store_test_results: path: packages/amplify-e2e-tests/ - store_artifacts: path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> amplify_migration_tests_v4: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -297,15 +405,26 @@ jobs: cd packages/amplify-migration-tests yarn run migration_v4.0.0 --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_non_multi_env_layers: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> environment: AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify steps: @@ -325,15 +444,26 @@ jobs: yarn run migration_v4.28.2_nonmultienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_multi_env_layers: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> environment: AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify steps: @@ -353,22 +483,34 @@ jobs: yarn run migration_v4.52.0_multienv_layers --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_v4_30_0: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> environment: AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Update OS Packages command: sudo apt-get update @@ -380,43 +522,77 @@ jobs: cd packages/amplify-migration-tests yarn run migration_v4.30.0_auth --maxWorkers=3 no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_latest: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Run tests migrating from latest CLI command: | + yarn pkg-all source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests yarn run migration --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-migration-tests/ - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_console_integration_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - - run: *ref_2 + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl - run: command: | echo "export PATH=~/.npm-global/bin:$PATH" >> $BASH_ENV @@ -426,7 +602,15 @@ jobs: yarn run console-integration --maxWorkers=3 name: Run Amplify Console integration tests no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_test_results: path: packages/amplify-console-integration-tests/ - store_artifacts: @@ -535,7 +719,15 @@ jobs: yarn cypress run --spec $(find . -type f -name 'api_spec*') - run: cd .circleci/ && chmod +x delete_api.sh - run: expect .circleci/delete_api.exp - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_artifacts: path: /root/aws-amplify-cypress-auth/cypress/videos - store_artifacts: @@ -546,7 +738,8 @@ jobs: path: /root/aws-amplify-cypress-api/cypress/screenshots deploy: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - attach_workspace: @@ -561,14 +754,27 @@ jobs: name: Publish Amplify CLI command: | bash ./.circleci/publish.sh - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always github_prerelease: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - attach_workspace: at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplify-unified-changelog-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -589,7 +795,8 @@ jobs: yarn ts-node scripts/github-prerelease.ts $version github_prerelease_install_sanity_check: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - restore_cache: @@ -609,13 +816,16 @@ jobs: amplify version github_release: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplfiy-pkg-tag-{{ .Branch }}-{{ .Revision }} - run: @@ -625,2820 +835,9336 @@ jobs: yarn ts-node scripts/github-release.ts $version cleanup_resources: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - run: name: Run cleanup script command: | cd packages/amplify-e2e-tests yarn clean-e2e-resources no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports cleanup_resources_after_e2e_runs: working_directory: ~/repo - docker: *ref_0 + docker: + - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - run: name: Run cleanup script command: | cd packages/amplify-e2e-tests yarn clean-e2e-resources workflow ${CIRCLE_WORKFLOW_ID} no_output_timeout: 90m - - run: *ref_4 + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always - store_artifacts: path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports - schema-iterative-update-4-amplify_e2e_tests: + api_4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + TEST_SUITE: src/__tests__/api_4.test.ts CLI_REGION: us-east-2 - api_2-amplify_e2e_tests: + auth_6-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_2.test.ts + TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 - storage-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/storage.test.ts - CLI_REGION: eu-west-2 - schema-auth-5-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-5.test.ts - CLI_REGION: eu-central-1 - api_1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/api_1.test.ts - CLI_REGION: ap-northeast-1 - schema-auth-2-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-2.test.ts - CLI_REGION: ap-southeast-1 - schema-iterative-update-3-amplify_e2e_tests: + USE_PARENT_ACCOUNT: 1 + configure-project-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts - CLI_REGION: ap-southeast-2 - schema-auth-6-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-6.test.ts - CLI_REGION: us-east-2 - schema-connection-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-connection.test.ts - CLI_REGION: us-west-2 - migration-api-connection-migration-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: eu-west-2 - schema-model-amplify_e2e_tests: + container-hosting-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-model.test.ts + TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: eu-central-1 - schema-function-amplify_e2e_tests: + frontend_config_drift-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-function.test.ts + TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-northeast-1 - function_4-amplify_e2e_tests: + function_5-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_4.test.ts + TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: ap-southeast-1 - schema-auth-1-amplify_e2e_tests: + function_6-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-1.test.ts + TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: ap-southeast-2 - function_1-amplify_e2e_tests: + function_7-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_1.test.ts + TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: us-east-2 - migration-api-key-migration2-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts - CLI_REGION: us-west-2 - schema-auth-11-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-11.test.ts - CLI_REGION: eu-west-2 - schema-auth-9-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-9.test.ts - CLI_REGION: eu-central-1 - auth_2-amplify_e2e_tests: + hooks-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_2.test.ts - CLI_REGION: ap-northeast-1 - env-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/env.test.ts - CLI_REGION: ap-southeast-1 - schema-iterative-rollback-2-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts - CLI_REGION: ap-southeast-2 - schema-iterative-rollback-1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts - CLI_REGION: us-east-2 - import_dynamodb_1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: us-west-2 - import_s3_1-amplify_e2e_tests: + iam-permissions-boundary-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_s3_1.test.ts + TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: eu-west-2 - import_auth_2-amplify_e2e_tests: + layer-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_auth_2.test.ts + TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: eu-central-1 - import_auth_1-amplify_e2e_tests: + migration-node-function-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/import_auth_1.test.ts + TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: ap-northeast-1 - api_3-amplify_e2e_tests: + USE_PARENT_ACCOUNT: 1 + pull-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_3.test.ts + TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: ap-southeast-1 - schema-auth-4-amplify_e2e_tests: + s3-sse-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-4.test.ts + TEST_SUITE: src/__tests__/s3-sse.test.ts CLI_REGION: ap-southeast-2 - schema-searchable-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-searchable.test.ts - CLI_REGION: us-east-2 - schema-auth-8-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-8.test.ts - CLI_REGION: us-west-2 - schema-auth-7-amplify_e2e_tests: + schema-iterative-update-locking-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-7.test.ts - CLI_REGION: eu-west-2 - auth_4-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_4.test.ts - CLI_REGION: eu-central-1 - migration-api-key-migration1-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts - CLI_REGION: ap-northeast-1 - layer-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/layer.test.ts - CLI_REGION: ap-southeast-1 - auth_3-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_3.test.ts - CLI_REGION: ap-southeast-2 - function_2-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_2.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-east-2 - delete-amplify_e2e_tests: + USE_PARENT_ACCOUNT: 1 + plugin-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/delete.test.ts + TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: us-west-2 - schema-auth-3-amplify_e2e_tests: + init-special-case-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-auth-3.test.ts + TEST_SUITE: src/__tests__/init-special-case.test.ts CLI_REGION: eu-west-2 - schema-iterative-update-1-amplify_e2e_tests: + datastore-modelgen-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts + TEST_SUITE: src/__tests__/datastore-modelgen.test.ts CLI_REGION: eu-central-1 - function_3-amplify_e2e_tests: + amplify-configure-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_3.test.ts + TEST_SUITE: src/__tests__/amplify-configure.test.ts CLI_REGION: ap-northeast-1 - auth_5-amplify_e2e_tests: + init-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_5.test.ts + TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: ap-southeast-1 - auth_1-amplify_e2e_tests: + tags-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/auth_1.test.ts - CLI_REGION: ap-southeast-2 - schema-key-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-key.test.ts - CLI_REGION: us-east-2 - schema-auth-10-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-auth-10.test.ts - CLI_REGION: us-west-2 - geo-remove-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: eu-central-1 - geo-update-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: ap-northeast-1 - geo-add-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-1 - hostingPROD-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/hostingPROD.test.ts - CLI_REGION: ap-southeast-1 - predictions-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/predictions.test.ts + TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: ap-southeast-2 - containers-api-amplify_e2e_tests: + notifications-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/containers-api.test.ts + TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: us-east-2 - schema-iterative-update-2-amplify_e2e_tests: + schema-versioned-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts + TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: us-west-2 - feature-flags-amplify_e2e_tests: + schema-data-access-patterns-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/feature-flags.test.ts + TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: eu-west-2 - analytics-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/analytics.test.ts - CLI_REGION: eu-central-1 - hosting-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/hosting.test.ts - CLI_REGION: ap-northeast-1 - amplify-app-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/amplify-app.test.ts - CLI_REGION: ap-southeast-1 - schema-predictions-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-predictions.test.ts - CLI_REGION: ap-southeast-2 interactions-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: TEST_SUITE: src/__tests__/interactions.test.ts - CLI_REGION: us-east-2 - schema-data-access-patterns-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: us-west-2 - schema-versioned-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-versioned.test.ts - CLI_REGION: eu-west-2 - notifications-amplify_e2e_tests: + schema-predictions-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/notifications.test.ts - CLI_REGION: eu-central-1 - tags-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/tags.test.ts + TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: ap-northeast-1 - init-amplify_e2e_tests: + amplify-app-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/init.test.ts + TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: ap-southeast-1 - amplify-configure-amplify_e2e_tests: + hosting-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/amplify-configure.test.ts + TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: ap-southeast-2 - datastore-modelgen-amplify_e2e_tests: + analytics-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/datastore-modelgen.test.ts + TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: us-east-2 - init-special-case-amplify_e2e_tests: + feature-flags-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/init-special-case.test.ts + TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: us-west-2 - plugin-amplify_e2e_tests: + schema-iterative-update-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/plugin.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: eu-west-2 - schema-iterative-update-locking-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts - CLI_REGION: eu-central-1 - s3-sse-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/s3-sse.test.ts - CLI_REGION: ap-northeast-1 - pull-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/pull.test.ts - CLI_REGION: ap-southeast-1 - migration-node-function-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/migration/node.function.test.ts - CLI_REGION: ap-southeast-2 - layer-2-amplify_e2e_tests: + containers-api-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/layer-2.test.ts - CLI_REGION: us-east-2 - iam-permissions-boundary-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts - CLI_REGION: us-west-2 - hooks-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/hooks.test.ts - CLI_REGION: eu-west-2 - function_7-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_7.test.ts + TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: eu-central-1 - function_6-amplify_e2e_tests: + predictions-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_6.test.ts + TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: ap-northeast-1 - function_5-amplify_e2e_tests: + hostingPROD-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/function_5.test.ts + TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: ap-southeast-1 - frontend_config_drift-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/frontend_config_drift.test.ts - CLI_REGION: ap-southeast-2 - container-hosting-amplify_e2e_tests: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 - environment: - TEST_SUITE: src/__tests__/container-hosting.test.ts - CLI_REGION: us-east-2 - configure-project-amplify_e2e_tests: + geo-add-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/configure-project.test.ts - CLI_REGION: us-west-2 - auth_6-amplify_e2e_tests: + TEST_SUITE: src/__tests__/geo-add.test.ts + CLI_REGION: ap-southeast-1 + geo-update-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/auth_6.test.ts - CLI_REGION: eu-west-2 - api_4-amplify_e2e_tests: + TEST_SUITE: src/__tests__/geo-update.test.ts + CLI_REGION: ap-southeast-2 + geo-remove-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - steps: *ref_5 + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - TEST_SUITE: src/__tests__/api_4.test.ts - CLI_REGION: eu-central-1 - schema-iterative-update-4-amplify_e2e_tests_pkg_linux: + TEST_SUITE: src/__tests__/geo-remove.test.ts + CLI_REGION: us-east-2 + schema-auth-10-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - api_2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/api_2.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - storage-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/storage.test.ts + TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - schema-auth-5-amplify_e2e_tests_pkg_linux: + schema-key-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-5.test.ts + TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - api_1-amplify_e2e_tests_pkg_linux: + auth_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/api_1.test.ts + TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - schema-auth-2-amplify_e2e_tests_pkg_linux: + auth_5-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-2.test.ts + TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-iterative-update-3-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + function_3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-auth-6-amplify_e2e_tests_pkg_linux: + schema-iterative-update-1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-6.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-connection-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-connection.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - migration-api-connection-migration-amplify_e2e_tests_pkg_linux: + schema-auth-3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts - CLI_REGION: eu-west-2 - steps: *ref_6 - schema-model-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-model.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 - schema-function-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-function.test.ts - CLI_REGION: ap-northeast-1 - steps: *ref_6 - function_4-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_4.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-auth-1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-1.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - function_1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_1.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - migration-api-key-migration2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - schema-auth-11-amplify_e2e_tests_pkg_linux: + delete-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-11.test.ts + TEST_SUITE: src/__tests__/delete.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - schema-auth-9-amplify_e2e_tests_pkg_linux: + function_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-9.test.ts + TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - auth_2-amplify_e2e_tests_pkg_linux: + auth_3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_2.test.ts + TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - env-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + layer-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/env.test.ts + TEST_SUITE: src/__tests__/layer.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: + migration-api-key-migration1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - import_dynamodb_1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - import_s3_1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_s3_1.test.ts - CLI_REGION: eu-west-2 - steps: *ref_6 - import_auth_2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_auth_2.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 - import_auth_1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/import_auth_1.test.ts - CLI_REGION: ap-northeast-1 - steps: *ref_6 - api_3-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/api_3.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-auth-4-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-4.test.ts + TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-searchable-amplify_e2e_tests_pkg_linux: + auth_4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-searchable.test.ts + TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-auth-8-amplify_e2e_tests_pkg_linux: + schema-auth-7-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-8.test.ts + TEST_SUITE: src/__tests__/schema-auth-7.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - schema-auth-7-amplify_e2e_tests_pkg_linux: + schema-auth-8-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-7.test.ts + TEST_SUITE: src/__tests__/schema-auth-8.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - auth_4-amplify_e2e_tests_pkg_linux: + schema-searchable-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_4.test.ts + TEST_SUITE: src/__tests__/schema-searchable.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - migration-api-key-migration1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts - CLI_REGION: ap-northeast-1 - steps: *ref_6 - layer-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/layer.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - auth_3-amplify_e2e_tests_pkg_linux: + schema-auth-4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_3.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - function_2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_2.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - delete-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/delete.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - schema-auth-3-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-3.test.ts - CLI_REGION: eu-west-2 - steps: *ref_6 - schema-iterative-update-1-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 - function_3-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_3.test.ts + TEST_SUITE: src/__tests__/schema-auth-4.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - auth_5-amplify_e2e_tests_pkg_linux: + api_3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_5.test.ts + TEST_SUITE: src/__tests__/api_3.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - auth_1-amplify_e2e_tests_pkg_linux: + import_auth_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_1.test.ts + TEST_SUITE: src/__tests__/import_auth_1.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - schema-key-amplify_e2e_tests_pkg_linux: + import_auth_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-key.test.ts + TEST_SUITE: src/__tests__/import_auth_2.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - schema-auth-10-amplify_e2e_tests_pkg_linux: + import_s3_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-auth-10.test.ts + TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - geo-remove-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/geo-remove.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 - geo-update-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/geo-update.test.ts - CLI_REGION: ap-northeast-1 - steps: *ref_6 - geo-add-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/geo-add.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - hostingPROD-amplify_e2e_tests_pkg_linux: + import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/hostingPROD.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - predictions-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/predictions.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - containers-api-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/containers-api.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - schema-iterative-update-2-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - feature-flags-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/feature-flags.test.ts + TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - analytics-amplify_e2e_tests_pkg_linux: + schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/analytics.test.ts + TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - hosting-amplify_e2e_tests_pkg_linux: + schema-iterative-rollback-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/hosting.test.ts + TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - amplify-app-amplify_e2e_tests_pkg_linux: + env-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/amplify-app.test.ts + TEST_SUITE: src/__tests__/env.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - schema-predictions-amplify_e2e_tests_pkg_linux: + auth_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-predictions.test.ts + TEST_SUITE: src/__tests__/auth_2.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - interactions-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/interactions.test.ts - CLI_REGION: us-east-2 - steps: *ref_6 - schema-data-access-patterns-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts - CLI_REGION: us-west-2 - steps: *ref_6 - schema-versioned-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-versioned.test.ts - CLI_REGION: eu-west-2 - steps: *ref_6 - notifications-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + schema-auth-9-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/notifications.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 - tags-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/tags.test.ts - CLI_REGION: ap-northeast-1 - steps: *ref_6 - init-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/init.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - amplify-configure-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/amplify-configure.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - datastore-modelgen-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/datastore-modelgen.test.ts + TEST_SUITE: src/__tests__/schema-auth-9.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - init-special-case-amplify_e2e_tests_pkg_linux: + schema-auth-11-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/init-special-case.test.ts + TEST_SUITE: src/__tests__/schema-auth-11.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - plugin-amplify_e2e_tests_pkg_linux: + migration-api-key-migration2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/plugin.test.ts + TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: + function_1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts + TEST_SUITE: src/__tests__/function_1.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - s3-sse-amplify_e2e_tests_pkg_linux: + schema-auth-1-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/s3-sse.test.ts + TEST_SUITE: src/__tests__/schema-auth-1.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - pull-amplify_e2e_tests_pkg_linux: + function_4-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/pull.test.ts + TEST_SUITE: src/__tests__/function_4.test.ts CLI_REGION: ap-southeast-1 - steps: *ref_6 - migration-node-function-amplify_e2e_tests_pkg_linux: + schema-function-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/migration/node.function.test.ts + TEST_SUITE: src/__tests__/schema-function.test.ts CLI_REGION: ap-southeast-2 - steps: *ref_6 - layer-2-amplify_e2e_tests_pkg_linux: + USE_PARENT_ACCOUNT: 1 + schema-model-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/layer-2.test.ts + TEST_SUITE: src/__tests__/schema-model.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - iam-permissions-boundary-amplify_e2e_tests_pkg_linux: + migration-api-connection-migration-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts + TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - hooks-amplify_e2e_tests_pkg_linux: + schema-connection-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/hooks.test.ts + TEST_SUITE: src/__tests__/schema-connection.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 - function_7-amplify_e2e_tests_pkg_linux: + schema-auth-6-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_7.test.ts + TEST_SUITE: src/__tests__/schema-auth-6.test.ts CLI_REGION: eu-central-1 - steps: *ref_6 - function_6-amplify_e2e_tests_pkg_linux: + schema-iterative-update-3-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_6.test.ts + TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts CLI_REGION: ap-northeast-1 - steps: *ref_6 - function_5-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/function_5.test.ts - CLI_REGION: ap-southeast-1 - steps: *ref_6 - frontend_config_drift-amplify_e2e_tests_pkg_linux: - working_directory: ~/repo - docker: *ref_1 - resource_class: large - environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/frontend_config_drift.test.ts - CLI_REGION: ap-southeast-2 - steps: *ref_6 - container-hosting-amplify_e2e_tests_pkg_linux: + schema-auth-2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/container-hosting.test.ts + TEST_SUITE: src/__tests__/schema-auth-2.test.ts + CLI_REGION: ap-southeast-1 + api_1-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/api_1.test.ts + CLI_REGION: ap-southeast-2 + schema-auth-5-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/schema-auth-5.test.ts CLI_REGION: us-east-2 - steps: *ref_6 - configure-project-amplify_e2e_tests_pkg_linux: + storage-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/configure-project.test.ts + TEST_SUITE: src/__tests__/storage.test.ts CLI_REGION: us-west-2 - steps: *ref_6 - auth_6-amplify_e2e_tests_pkg_linux: + api_2-amplify_e2e_tests: working_directory: ~/repo - docker: *ref_1 - resource_class: large + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux - TEST_SUITE: src/__tests__/auth_6.test.ts + TEST_SUITE: src/__tests__/api_2.test.ts CLI_REGION: eu-west-2 - steps: *ref_6 + schema-iterative-update-4-amplify_e2e_tests: + working_directory: ~/repo + parameters: + os: + type: executor + default: linux + executor: << parameters.os >> + steps: + - attach_workspace: + at: ./ + - restore_cache: + keys: + - amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - run: + name: Start verdaccio, install node CLI and amplify-app + command: | + source .circleci/local_publish_helpers.sh + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + changeNpmGlobalPath + npm install -g @aws-amplify/cli + npm install -g amplify-app + unsetNpmRegistryUrl + - run: + name: Run Amplify end-to-end tests + command: | + source .circleci/local_publish_helpers.sh + changeNpmGlobalPath + amplify -v + amplify-app --version + startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" + setNpmRegistryUrlToLocal + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + unsetNpmRegistryUrl + no_output_timeout: 90m + - run: + name: Scan And Cleanup E2E Test Artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + CLI_REGION: eu-central-1 api_4-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> working_directory: ~/repo - docker: *ref_1 - resource_class: large + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux TEST_SUITE: src/__tests__/api_4.test.ts - CLI_REGION: eu-central-1 - steps: *ref_6 -workflows: - version: 2 - nightly_console_integration_tests: - triggers: - - schedule: - cron: 0 14 * * * + CLI_REGION: us-east-2 + auth_6-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_6.test.ts + CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 + configure-project-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/configure-project.test.ts + CLI_REGION: eu-west-2 + container-hosting-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/container-hosting.test.ts + CLI_REGION: eu-central-1 + frontend_config_drift-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/frontend_config_drift.test.ts + CLI_REGION: ap-northeast-1 + function_5-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_5.test.ts + CLI_REGION: ap-southeast-1 + function_6-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_6.test.ts + CLI_REGION: ap-southeast-2 + function_7-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_7.test.ts + CLI_REGION: us-east-2 + hooks-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/hooks.test.ts + CLI_REGION: us-west-2 + iam-permissions-boundary-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts + CLI_REGION: eu-west-2 + layer-2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/layer-2.test.ts + CLI_REGION: eu-central-1 + migration-node-function-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/node.function.test.ts + CLI_REGION: ap-northeast-1 + USE_PARENT_ACCOUNT: 1 + pull-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/pull.test.ts + CLI_REGION: ap-southeast-1 + s3-sse-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/s3-sse.test.ts + CLI_REGION: ap-southeast-2 + schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts + CLI_REGION: us-east-2 + USE_PARENT_ACCOUNT: 1 + plugin-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/plugin.test.ts + CLI_REGION: us-west-2 + init-special-case-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/init-special-case.test.ts + CLI_REGION: eu-west-2 + datastore-modelgen-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/datastore-modelgen.test.ts + CLI_REGION: eu-central-1 + amplify-configure-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/amplify-configure.test.ts + CLI_REGION: ap-northeast-1 + init-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/init.test.ts + CLI_REGION: ap-southeast-1 + tags-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/tags.test.ts + CLI_REGION: ap-southeast-2 + notifications-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/notifications.test.ts + CLI_REGION: us-east-2 + schema-versioned-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-versioned.test.ts + CLI_REGION: us-west-2 + schema-data-access-patterns-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts + CLI_REGION: eu-west-2 + interactions-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/interactions.test.ts + CLI_REGION: us-west-2 + schema-predictions-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-predictions.test.ts + CLI_REGION: ap-northeast-1 + amplify-app-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/amplify-app.test.ts + CLI_REGION: ap-southeast-1 + hosting-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/hosting.test.ts + CLI_REGION: ap-southeast-2 + analytics-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/analytics.test.ts + CLI_REGION: us-east-2 + feature-flags-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/feature-flags.test.ts + CLI_REGION: us-west-2 + schema-iterative-update-2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts + CLI_REGION: eu-west-2 + containers-api-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/containers-api.test.ts + CLI_REGION: eu-central-1 + predictions-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/predictions.test.ts + CLI_REGION: ap-northeast-1 + hostingPROD-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/hostingPROD.test.ts + CLI_REGION: ap-southeast-1 + geo-add-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/geo-add.test.ts + CLI_REGION: ap-southeast-1 + geo-update-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/geo-update.test.ts + CLI_REGION: ap-southeast-2 + geo-remove-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/geo-remove.test.ts + CLI_REGION: us-east-2 + schema-auth-10-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-10.test.ts + CLI_REGION: eu-west-2 + schema-key-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-key.test.ts + CLI_REGION: eu-central-1 + auth_1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_1.test.ts + CLI_REGION: ap-northeast-1 + auth_5-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_5.test.ts + CLI_REGION: ap-southeast-1 + USE_PARENT_ACCOUNT: 1 + function_3-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_3.test.ts + CLI_REGION: ap-southeast-2 + schema-iterative-update-1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts + CLI_REGION: us-east-2 + schema-auth-3-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-3.test.ts + CLI_REGION: us-west-2 + delete-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/delete.test.ts + CLI_REGION: eu-west-2 + function_2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_2.test.ts + CLI_REGION: eu-central-1 + auth_3-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_3.test.ts + CLI_REGION: ap-northeast-1 + USE_PARENT_ACCOUNT: 1 + layer-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/layer.test.ts + CLI_REGION: ap-southeast-1 + migration-api-key-migration1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts + CLI_REGION: ap-southeast-2 + auth_4-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_4.test.ts + CLI_REGION: us-east-2 + schema-auth-7-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-7.test.ts + CLI_REGION: us-west-2 + schema-auth-8-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-8.test.ts + CLI_REGION: eu-west-2 + schema-searchable-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-searchable.test.ts + CLI_REGION: eu-central-1 + schema-auth-4-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-4.test.ts + CLI_REGION: ap-northeast-1 + api_3-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_3.test.ts + CLI_REGION: ap-southeast-1 + import_auth_1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_auth_1.test.ts + CLI_REGION: ap-southeast-2 + import_auth_2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_auth_2.test.ts + CLI_REGION: us-east-2 + import_s3_1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_s3_1.test.ts + CLI_REGION: us-west-2 + import_dynamodb_1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts + CLI_REGION: eu-west-2 + schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts + CLI_REGION: eu-central-1 + schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts + CLI_REGION: ap-northeast-1 + env-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/env.test.ts + CLI_REGION: ap-southeast-1 + USE_PARENT_ACCOUNT: 1 + auth_2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/auth_2.test.ts + CLI_REGION: ap-southeast-2 + USE_PARENT_ACCOUNT: 1 + schema-auth-9-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-9.test.ts + CLI_REGION: us-east-2 + schema-auth-11-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-11.test.ts + CLI_REGION: us-west-2 + migration-api-key-migration2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts + CLI_REGION: eu-west-2 + function_1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_1.test.ts + CLI_REGION: eu-central-1 + schema-auth-1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-1.test.ts + CLI_REGION: ap-northeast-1 + function_4-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/function_4.test.ts + CLI_REGION: ap-southeast-1 + schema-function-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-function.test.ts + CLI_REGION: ap-southeast-2 + USE_PARENT_ACCOUNT: 1 + schema-model-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-model.test.ts + CLI_REGION: us-east-2 + migration-api-connection-migration-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts + CLI_REGION: us-west-2 + schema-connection-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-connection.test.ts + CLI_REGION: eu-west-2 + schema-auth-6-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-6.test.ts + CLI_REGION: eu-central-1 + schema-iterative-update-3-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts + CLI_REGION: ap-northeast-1 + schema-auth-2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-2.test.ts + CLI_REGION: ap-southeast-1 + api_1-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_1.test.ts + CLI_REGION: ap-southeast-2 + schema-auth-5-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-auth-5.test.ts + CLI_REGION: us-east-2 + storage-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/storage.test.ts + CLI_REGION: us-west-2 + api_2-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/api_2.test.ts + CLI_REGION: eu-west-2 + schema-iterative-update-4-amplify_e2e_tests_pkg_linux: + parameters: + os: + type: executor + default: os.build_img + executor: << parameters.os >> + working_directory: ~/repo + steps: + - attach_workspace: + at: ./ + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - install_yarn: + os: << parameters.os >> + - install_packaged_cli: + os: << parameters.os >> + - run_e2e_tests: + os: << parameters.os >> + - scan_e2e_test_artifacts: + os: << parameters.os >> + - store_test_results: + path: packages/amplify-e2e-tests/ + - store_artifacts: + path: packages/amplify-e2e-tests/amplify-e2e-reports + - clean_e2e_resources: + os: << parameters.os >> + environment: + TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts + CLI_REGION: eu-central-1 +workflows: + version: 2 + nightly_console_integration_tests: + triggers: + - schedule: + cron: 0 14 * * * + filters: + branches: + only: + - master + jobs: + - build: + matrix: + parameters: + os: + - windows + - build_img + - publish_to_local_registry: + requires: + - build + - amplify_console_integration_tests: + context: + - amplify-ecr-image-pull + - console-e2e-test + - e2e-auth-credentials + - e2e-test-context + requires: + - build + - publish_to_local_registry + e2e_resource_cleanup: + triggers: + - schedule: + cron: 45 0,12 * * * + filters: + branches: + only: + - master + jobs: + - build: + matrix: + parameters: + os: + - build_img + - cleanup_resources: + context: + - cleanup-resources + - e2e-test-context + requires: + - build + build_test_deploy: + jobs: + - build: + matrix: + parameters: + os: + - build_img + - windows + - test: + matrix: + parameters: + os: + - build_img + requires: + - build-build_img + - mock_e2e_tests: + matrix: + parameters: + os: + - build_img + requires: + - build + - graphql_e2e_tests: + context: + - amplify-ecr-image-pull + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build-build_img + - mock_e2e_tests + - integration_test: + context: + - amplify-ecr-image-pull + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - beta + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build-build_img + - mock_e2e_tests + - publish_to_local_registry: + filters: + branches: + only: + - master + - win-e2e + - beta + - release + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build-build_img + - build_pkg_binaries: + requires: + - publish_to_local_registry + - amplify_sudo_install_test: + context: amplify-ecr-image-pull + requires: + - publish_to_local_registry + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + - done_with_node_e2e_tests: + requires: + - import_auth_2-amplify_e2e_tests + - schema-auth-9-amplify_e2e_tests + - schema-model-amplify_e2e_tests + - schema-auth-5-amplify_e2e_tests + - import_s3_1-amplify_e2e_tests + - schema-auth-11-amplify_e2e_tests + - migration-api-connection-migration-amplify_e2e_tests + - storage-amplify_e2e_tests + - import_dynamodb_1-amplify_e2e_tests + - migration-api-key-migration2-amplify_e2e_tests + - schema-connection-amplify_e2e_tests + - api_2-amplify_e2e_tests + - schema-iterative-rollback-1-amplify_e2e_tests + - function_1-amplify_e2e_tests + - schema-auth-6-amplify_e2e_tests + - schema-iterative-update-4-amplify_e2e_tests + - schema-auth-4-amplify_e2e_tests + - schema-iterative-rollback-2-amplify_e2e_tests + - schema-auth-1-amplify_e2e_tests + - schema-iterative-update-3-amplify_e2e_tests + - api_3-amplify_e2e_tests + - env-amplify_e2e_tests + - function_4-amplify_e2e_tests + - schema-auth-2-amplify_e2e_tests + - import_auth_1-amplify_e2e_tests + - auth_2-amplify_e2e_tests + - schema-function-amplify_e2e_tests + - api_1-amplify_e2e_tests + - amplify_e2e_tests_pkg: + matrix: + parameters: + os: + - windows + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - win-e2e + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - build_pkg_binaries + - done_with_pkg_e2e_tests: + context: + - amplify-cli-ecr + - amplify-cli-aws-creds-< matrix.os >> + requires: + - amplify_e2e_tests_pkg + - amplify_migration_tests_latest: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - amplify_migration_tests_v4: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - amplify_migration_tests_v4_30_0: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - amplify_migration_tests_non_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - amplify_migration_tests_multi_env_layers: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - amplify_console_integration_tests: + context: + - amplify-ecr-image-pull + - e2e-auth-credentials + - clean_e2e_resources + - console-e2e-test + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - beta + requires: + - build + - publish_to_local_registry + - github_prerelease: + context: github-publish + requires: + - build_pkg_binaries + filters: + branches: + only: + - release + - github_prerelease_install_sanity_check: + requires: + - github_prerelease + filters: + branches: + only: + - release + - cleanup_resources_after_e2e_runs: + context: + - cleanup-resources + - e2e-test-context + requires: + - done_with_pkg_e2e_tests + - amplify_migration_tests_latest + - amplify_migration_tests_v4 + - amplify_migration_tests_v4_30_0 + - done_with_node_e2e_tests + - deploy: + context: + - amplify-ecr-image-pull + - npm-publish + requires: + - test + - mock_e2e_tests + - graphql_e2e_tests + - integration_test + - done_with_pkg_e2e_tests + - amplify_sudo_install_test + - amplify_console_integration_tests + - amplify_migration_tests_latest + - amplify_migration_tests_v4 + - amplify_migration_tests_v4_30_0 + - amplify_migration_tests_non_multi_env_layers + - amplify_migration_tests_multi_env_layers + - github_prerelease_install_sanity_check + filters: + branches: + only: + - release + - master + - win-e2e + - beta + - /tagged-release\/.*/ + - /tagged-release-without-e2e-tests\/.*/ + - github_release: + context: github-publish + requires: + - deploy + filters: + branches: + only: + - release + - api_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - function_7-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-iterative-update-locking-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - notifications-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - analytics-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - api_4-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - geo-remove-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - function_7-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-update-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-iterative-update-locking-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - notifications-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - import_auth_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - analytics-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-9-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - geo-remove-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-model-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-iterative-update-1-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_4-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - hooks-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - plugin-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-versioned-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - interactions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_6-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - feature-flags-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - hooks-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - plugin-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-7-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-versioned-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - import_s3_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - interactions-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-11-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - feature-flags-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - migration-api-connection-migration-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-3-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - storage-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-7-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - configure-project-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - iam-permissions-boundary-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - init-special-case-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-data-access-patterns-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-iterative-update-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - configure-project-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-10-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - iam-permissions-boundary-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - delete-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - init-special-case-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-8-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-data-access-patterns-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - import_dynamodb_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-iterative-update-2-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - migration-api-key-migration2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-10-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-connection-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - delete-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - api_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-8-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - container-hosting-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - layer-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - datastore-modelgen-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - containers-api-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - build + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-key-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - container-hosting-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - layer-2-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-searchable-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - datastore-modelgen-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - containers-api-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - master - jobs: - - build - - publish_to_local_registry: + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - build - - amplify_console_integration_tests: + - schema-key-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-6-amplify_e2e_tests: context: - amplify-ecr-image-pull - - console-e2e-test + - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - requires: - - build - - publish_to_local_registry - e2e_resource_cleanup: - triggers: - - schedule: - cron: 45 0,12 * * * filters: branches: only: - master - jobs: - - build - - cleanup_resources: + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - function_2-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-update-4-amplify_e2e_tests: context: - - cleanup-resources + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - build - build_test_deploy: - jobs: - - build - - test: - requires: - - build - - mock_e2e_tests: + - schema-searchable-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - frontend_config_drift-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - build - - graphql_e2e_tests: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - migration-node-function-amplify_e2e_tests: context: - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - build - - mock_e2e_tests - - integration_test: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - amplify-configure-amplify_e2e_tests: context: - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master - - beta + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - build - - mock_e2e_tests - - publish_to_local_registry: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - master - - beta - - release + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - build - - build_pkg_binaries: - requires: - publish_to_local_registry - - amplify_sudo_install_test: - context: amplify-ecr-image-pull + matrix: + parameters: + os: + - linux + - predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - publish_to_local_registry + - frontend_config_drift-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - - done_with_node_e2e_tests: requires: - - interactions-amplify_e2e_tests - - datastore-modelgen-amplify_e2e_tests - - layer-2-amplify_e2e_tests - - container-hosting-amplify_e2e_tests - - schema-data-access-patterns-amplify_e2e_tests - - init-special-case-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests - - configure-project-amplify_e2e_tests - - schema-versioned-amplify_e2e_tests - - plugin-amplify_e2e_tests - - hooks-amplify_e2e_tests - - auth_6-amplify_e2e_tests - - notifications-amplify_e2e_tests - - schema-iterative-update-locking-amplify_e2e_tests - - function_7-amplify_e2e_tests - - api_4-amplify_e2e_tests - - hosting-amplify_e2e_tests - - tags-amplify_e2e_tests - - s3-sse-amplify_e2e_tests - - function_6-amplify_e2e_tests - - amplify-app-amplify_e2e_tests - - init-amplify_e2e_tests - - pull-amplify_e2e_tests - - function_5-amplify_e2e_tests - - schema-predictions-amplify_e2e_tests - - amplify-configure-amplify_e2e_tests - migration-node-function-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests - - done_with_pkg_linux_e2e_tests: - requires: - - interactions-amplify_e2e_tests_pkg_linux - - datastore-modelgen-amplify_e2e_tests_pkg_linux - - layer-2-amplify_e2e_tests_pkg_linux - - container-hosting-amplify_e2e_tests_pkg_linux - - schema-data-access-patterns-amplify_e2e_tests_pkg_linux - - init-special-case-amplify_e2e_tests_pkg_linux - - iam-permissions-boundary-amplify_e2e_tests_pkg_linux - - configure-project-amplify_e2e_tests_pkg_linux - - schema-versioned-amplify_e2e_tests_pkg_linux - - plugin-amplify_e2e_tests_pkg_linux - - hooks-amplify_e2e_tests_pkg_linux - - auth_6-amplify_e2e_tests_pkg_linux - - notifications-amplify_e2e_tests_pkg_linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux - - function_7-amplify_e2e_tests_pkg_linux - - api_4-amplify_e2e_tests_pkg_linux - - hosting-amplify_e2e_tests_pkg_linux - - tags-amplify_e2e_tests_pkg_linux - - s3-sse-amplify_e2e_tests_pkg_linux - - function_6-amplify_e2e_tests_pkg_linux - - amplify-app-amplify_e2e_tests_pkg_linux - - init-amplify_e2e_tests_pkg_linux - - pull-amplify_e2e_tests_pkg_linux - - function_5-amplify_e2e_tests_pkg_linux - - schema-predictions-amplify_e2e_tests_pkg_linux - - amplify-configure-amplify_e2e_tests_pkg_linux - - migration-node-function-amplify_e2e_tests_pkg_linux - - frontend_config_drift-amplify_e2e_tests_pkg_linux - - amplify_migration_tests_latest: + matrix: + parameters: + os: + - linux + - auth_3-amplify_e2e_tests: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - amplify-configure-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - amplify_migration_tests_v4: + - schema-predictions-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-2-amplify_e2e_tests: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - predictions-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - amplify_migration_tests_v4_30_0: + - auth_1-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-update-3-amplify_e2e_tests: context: - amplify-ecr-image-pull + - clean_e2e_resources - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_3-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - build - - amplify_migration_tests_non_multi_env_layers: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - pull-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - build - - amplify_migration_tests_multi_env_layers: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - init-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - build - - amplify_console_integration_tests: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - amplify-app-amplify_e2e_tests: context: - amplify-ecr-image-pull - - e2e-auth-credentials - clean_e2e_resources - - console-e2e-test + - e2e-auth-credentials - e2e-test-context - post-steps: - - run: *ref_7 filters: branches: only: - - beta + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - build - publish_to_local_registry - - github_prerelease: - context: github-publish + matrix: + parameters: + os: + - linux + - hostingPROD-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - build_pkg_binaries + - function_5-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - geo-add-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - - release - - github_prerelease_install_sanity_check: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - github_prerelease + - pull-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - - release - - cleanup_resources_after_e2e_runs: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - init-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - layer-amplify_e2e_tests: context: - - cleanup-resources + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_pkg_linux_e2e_tests - - amplify_migration_tests_latest - - amplify_migration_tests_v4 - - amplify_migration_tests_v4_30_0 - - done_with_node_e2e_tests - - deploy: + - amplify-app-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - api_3-amplify_e2e_tests: context: - amplify-ecr-image-pull - - npm-publish - requires: - - test - - mock_e2e_tests - - graphql_e2e_tests - - integration_test - - done_with_pkg_linux_e2e_tests - - amplify_sudo_install_test - - amplify_console_integration_tests - - amplify_migration_tests_latest - - amplify_migration_tests_v4 - - amplify_migration_tests_v4_30_0 - - amplify_migration_tests_non_multi_env_layers - - amplify_migration_tests_multi_env_layers - - github_prerelease_install_sanity_check + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - - release - master - - beta + - win-e2e - /tagged-release\/.*/ - - /tagged-release-without-e2e-tests\/.*/ - - github_release: - context: github-publish + - /run-e2e\/*./ requires: - - deploy + - hostingPROD-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - env-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context filters: branches: only: - - release - - schema-iterative-update-4-amplify_e2e_tests: - context: &ref_8 + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - geo-add-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_4-amplify_e2e_tests: + context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: &ref_9 - - run: *ref_7 - filters: &ref_10 + filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - publish_to_local_registry - - schema-auth-6-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - function_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-iterative-rollback-1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-searchable-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-update-4-amplify_e2e_tests - - function_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-6-amplify_e2e_tests - - schema-key-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_1-amplify_e2e_tests - - containers-api-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-rollback-1-amplify_e2e_tests - - interactions-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-searchable-amplify_e2e_tests - - datastore-modelgen-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_2-amplify_e2e_tests - - layer-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-key-amplify_e2e_tests - - container-hosting-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - containers-api-amplify_e2e_tests - - api_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-connection-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - migration-api-key-migration2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_dynamodb_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-8-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - api_2-amplify_e2e_tests - - delete-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-connection-amplify_e2e_tests - - schema-auth-10-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - migration-api-key-migration2-amplify_e2e_tests - - schema-iterative-update-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_dynamodb_1-amplify_e2e_tests - - schema-data-access-patterns-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-8-amplify_e2e_tests - - init-special-case-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - delete-amplify_e2e_tests - - iam-permissions-boundary-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-10-amplify_e2e_tests - - configure-project-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-update-2-amplify_e2e_tests - - storage-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - migration-api-connection-migration-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-11-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_s3_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-7-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - storage-amplify_e2e_tests - - schema-auth-3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - migration-api-connection-migration-amplify_e2e_tests - - feature-flags-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-11-amplify_e2e_tests - - schema-versioned-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_s3_1-amplify_e2e_tests - - plugin-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-7-amplify_e2e_tests - - hooks-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-3-amplify_e2e_tests - - auth_6-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - feature-flags-amplify_e2e_tests - - schema-auth-5-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-model-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-auth-9-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_auth_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - auth_4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-5-amplify_e2e_tests - - schema-iterative-update-1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-model-amplify_e2e_tests - - geo-remove-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-9-amplify_e2e_tests - - analytics-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_auth_2-amplify_e2e_tests - - notifications-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - auth_4-amplify_e2e_tests - - schema-iterative-update-locking-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-update-1-amplify_e2e_tests - - function_7-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - geo-remove-amplify_e2e_tests - - api_4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - analytics-amplify_e2e_tests - - api_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - schema-function-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - auth_2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - import_auth_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - migration-api-key-migration1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - api_1-amplify_e2e_tests - - function_3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-function-amplify_e2e_tests - - geo-update-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - auth_2-amplify_e2e_tests - - hosting-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - import_auth_1-amplify_e2e_tests - - tags-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - migration-api-key-migration1-amplify_e2e_tests - - s3-sse-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_3-amplify_e2e_tests - - function_6-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - geo-update-amplify_e2e_tests + - auth_5-amplify_e2e_tests + matrix: + parameters: + os: + - linux - schema-auth-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - function_4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - env-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - api_3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - publish_to_local_registry - - layer-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-2-amplify_e2e_tests - - auth_5-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - function_4-amplify_e2e_tests - - geo-add-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - env-amplify_e2e_tests - - hostingPROD-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - api_3-amplify_e2e_tests - - amplify-app-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - layer-amplify_e2e_tests - - init-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - auth_5-amplify_e2e_tests - - pull-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - geo-add-amplify_e2e_tests - - function_5-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - hostingPROD-amplify_e2e_tests - - schema-iterative-update-3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + matrix: + parameters: + os: + - linux + - function_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: + - build - publish_to_local_registry - - schema-auth-1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + matrix: + parameters: + os: + - linux + - s3-sse-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: + - build - publish_to_local_registry - - schema-iterative-rollback-2-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + matrix: + parameters: + os: + - linux + - tags-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: + - build - publish_to_local_registry - - schema-auth-4-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 + matrix: + parameters: + os: + - linux + - hosting-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: + - build - publish_to_local_registry - - auth_3-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-update-3-amplify_e2e_tests - - auth_1-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-1-amplify_e2e_tests - - predictions-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-iterative-rollback-2-amplify_e2e_tests - - schema-predictions-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - schema-auth-4-amplify_e2e_tests - - amplify-configure-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - auth_3-amplify_e2e_tests - - migration-node-function-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - auth_1-amplify_e2e_tests - - frontend_config_drift-amplify_e2e_tests: - context: *ref_8 - post-steps: *ref_9 - filters: *ref_10 - requires: - - predictions-amplify_e2e_tests - - schema-iterative-update-4-amplify_e2e_tests_pkg_linux: - context: &ref_11 + matrix: + parameters: + os: + - linux + - geo-update-amplify_e2e_tests: + context: - amplify-ecr-image-pull - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - post-steps: &ref_12 - - run: *ref_7 - filters: &ref_13 + filters: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-auth-6-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - function_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-searchable-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-update-4-amplify_e2e_tests_pkg_linux - - function_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-6-amplify_e2e_tests_pkg_linux - - schema-key-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - function_1-amplify_e2e_tests_pkg_linux - - containers-api-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux - - interactions-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-searchable-amplify_e2e_tests_pkg_linux - - datastore-modelgen-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - function_2-amplify_e2e_tests_pkg_linux - - layer-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-key-amplify_e2e_tests_pkg_linux - - container-hosting-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - containers-api-amplify_e2e_tests_pkg_linux - - api_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-connection-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - migration-api-key-migration2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - import_dynamodb_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-auth-8-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - api_2-amplify_e2e_tests_pkg_linux - - delete-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-connection-amplify_e2e_tests_pkg_linux - - schema-auth-10-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - migration-api-key-migration2-amplify_e2e_tests_pkg_linux - - schema-iterative-update-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - import_dynamodb_1-amplify_e2e_tests_pkg_linux - - schema-data-access-patterns-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-8-amplify_e2e_tests_pkg_linux - - init-special-case-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - delete-amplify_e2e_tests_pkg_linux - - iam-permissions-boundary-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-10-amplify_e2e_tests_pkg_linux - - configure-project-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-update-2-amplify_e2e_tests_pkg_linux - - storage-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - migration-api-connection-migration-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-auth-11-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - import_s3_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-auth-7-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - storage-amplify_e2e_tests_pkg_linux - - schema-auth-3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - migration-api-connection-migration-amplify_e2e_tests_pkg_linux - - feature-flags-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-11-amplify_e2e_tests_pkg_linux - - schema-versioned-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - import_s3_1-amplify_e2e_tests_pkg_linux - - plugin-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-7-amplify_e2e_tests_pkg_linux - - hooks-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-3-amplify_e2e_tests_pkg_linux - - auth_6-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - feature-flags-amplify_e2e_tests_pkg_linux - - schema-auth-5-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-model-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-auth-9-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - import_auth_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - auth_4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-5-amplify_e2e_tests_pkg_linux - - schema-iterative-update-1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-model-amplify_e2e_tests_pkg_linux - - geo-remove-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-9-amplify_e2e_tests_pkg_linux - - analytics-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - import_auth_2-amplify_e2e_tests_pkg_linux - - notifications-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_4-amplify_e2e_tests_pkg_linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-update-1-amplify_e2e_tests_pkg_linux - - function_7-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - geo-remove-amplify_e2e_tests_pkg_linux - - api_4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - analytics-amplify_e2e_tests_pkg_linux - - api_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-function-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - auth_2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - import_auth_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - migration-api-key-migration1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - api_1-amplify_e2e_tests_pkg_linux - - function_3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-function-amplify_e2e_tests_pkg_linux - - geo-update-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_2-amplify_e2e_tests_pkg_linux - - hosting-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - import_auth_1-amplify_e2e_tests_pkg_linux - - tags-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - migration-api-key-migration1-amplify_e2e_tests_pkg_linux - - s3-sse-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - function_3-amplify_e2e_tests_pkg_linux - - function_6-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - geo-update-amplify_e2e_tests_pkg_linux - - schema-auth-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - function_4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - env-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - function_6-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - api_3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - s3-sse-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - migration-api-key-migration1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - layer-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-2-amplify_e2e_tests_pkg_linux - - auth_5-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - function_4-amplify_e2e_tests_pkg_linux - - geo-add-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - env-amplify_e2e_tests_pkg_linux - - hostingPROD-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - api_3-amplify_e2e_tests_pkg_linux - - amplify-app-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - layer-amplify_e2e_tests_pkg_linux - - init-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_5-amplify_e2e_tests_pkg_linux - - pull-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - geo-add-amplify_e2e_tests_pkg_linux - - function_5-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - hostingPROD-amplify_e2e_tests_pkg_linux - - schema-iterative-update-3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - tags-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - import_auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-auth-1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - hosting-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - geo-update-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-function-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - schema-auth-4-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 + - function_3-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - api_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - win-e2e + - /tagged-release\/.*/ + - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - - build_pkg_binaries - - auth_3-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-update-3-amplify_e2e_tests_pkg_linux - - auth_1-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-1-amplify_e2e_tests_pkg_linux - - predictions-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux - - schema-predictions-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - schema-auth-4-amplify_e2e_tests_pkg_linux - - amplify-configure-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_3-amplify_e2e_tests_pkg_linux - - migration-node-function-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - auth_1-amplify_e2e_tests_pkg_linux - - frontend_config_drift-amplify_e2e_tests_pkg_linux: - context: *ref_11 - post-steps: *ref_12 - filters: *ref_13 - requires: - - predictions-amplify_e2e_tests_pkg_linux + - migration-api-key-migration1-amplify_e2e_tests + matrix: + parameters: + os: + - linux +commands: + install_packaged_cli: + description: Install Amplify Packaged CLI to PATH + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Rename the Packaged CLI to amplify + command: | + # rename the command to amplify + cd $env:homedrive\$env:homepath\repo\out + mv amplify-pkg-win.exe amplify.exe + - run: + name: Move to CLI Binary to already existing PATH + command: > + # This is a Hack to make sure the Amplify CLI is in the PATH + + cp $env:homedrive\$env:homepath\repo\out\amplify.exe + $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Symlink Amplify packaged CLI + command: | + cd out + ln -sf amplify-pkg-linux amplify + echo "export PATH=$AMPLIFY_DIR:$PATH" >> $BASH_ENV + source $BASH_ENV + - run: + name: Confirm Amplify CLI is installed and available in PATH + command: amplify version + install_yarn: + description: Install Amplify Packaged CLI to PATH + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: nvm install 12.22.5 + - run: nvm use 12.22.5 + - run: npm install -g yarn + - run: yarn dev-build + - run: yarn pkg-all + install_java: + description: Install Java on Linux and Docker images + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Install Java + command: | + sudo apt-get update && sudo apt-get install default-jdk + run_e2e_tests: + description: Run Amplify E2E tests + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Run E2E tests + command: > + cd packages/amplify-e2e-tests + + yarn run e2e --detectOpenHandles --maxWorkers=3 + $ENV:TEST_SUITE + no_output_timeout: 90m + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Run E2E tests + command: | + source $BASH_ENV + amplify version + cd packages/amplify-e2e-tests + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE + no_output_timeout: 90m + scan_e2e_test_artifacts: + description: Scan And Cleanup E2E Test Artifacts + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + command: | + if ! yarn ts-node .circleci/scan_artifacts.ts; then + echo "Cleaning the repository" + git clean -fdx + exit 1 + fi + when: always + clean_e2e_resources: + description: Cleanup resources + parameters: + os: + type: executor + default: linux-e2e-executor + steps: + - when: + condition: + equal: + - machine: + image: windows-server-2019-vs2019:stable + resource_class: windows.large + shell: powershell.exe + working_directory: ~/repo + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + shell: bash.exe + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always + - when: + condition: + or: + - equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + - equal: + - docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + working_directory: ~/repo + resource_class: large + - << parameters.os >> + steps: + - run: + name: Scan E2E artifacts + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + when: always diff --git a/packages/amplify-e2e-core/src/categories/hosting.ts b/packages/amplify-e2e-core/src/categories/hosting.ts index 3e651da14ed..cc7b13c5ec2 100644 --- a/packages/amplify-e2e-core/src/categories/hosting.ts +++ b/packages/amplify-e2e-core/src/categories/hosting.ts @@ -1,6 +1,6 @@ import * as fs from 'fs-extra'; import * as path from 'path'; -import { nspawn as spawn, getCLIPath, createNewProjectDir, KEY_DOWN_ARROW, readJsonFile } from '..'; +import { nspawn as spawn, getCLIPath, createNewProjectDir, KEY_DOWN_ARROW, readJsonFile, getNpxPath } from '..'; import _ from 'lodash'; import { spawnSync } from 'child_process'; import { getBackendAmplifyMeta } from '../utils'; @@ -164,7 +164,7 @@ export async function createReactTestProject(): Promise { const projectName = path.basename(projRoot); const projectDir = path.dirname(projRoot); - spawnSync('npx', ['create-react-app', projectName], { cwd: projectDir }); + spawnSync(getNpxPath(), ['create-react-app', projectName], { cwd: projectDir }); return projRoot; } diff --git a/packages/amplify-e2e-core/src/index.ts b/packages/amplify-e2e-core/src/index.ts index ab47336b198..3db6089a257 100644 --- a/packages/amplify-e2e-core/src/index.ts +++ b/packages/amplify-e2e-core/src/index.ts @@ -25,9 +25,31 @@ declare global { const amplifyTestsDir = 'amplify-e2e-tests'; export function getCLIPath(testingWithLatestCodebase = false) { - return testingWithLatestCodebase - ? path.join(__dirname, '..', '..', 'amplify-cli', 'bin', 'amplify') - : process.env.AMPLIFY_PATH || 'amplify'; + if (!testingWithLatestCodebase) { + return process.env.AMPLIFY_PATH || (process.platform === 'win32' ? 'amplify.exe' : 'amplify'); + } + + const amplifyScriptPath = path.join(__dirname, '..', '..', 'amplify-cli', 'bin', 'amplify'); + return amplifyScriptPath; +} + +export function getScriptRunnerPath(testingWithLatestCodebase = false) { + if (!testingWithLatestCodebase) { + return process.platform === 'win32' + ? 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe' + : path.join(__dirname, '..', '..', '..', '.circleci', 'exec'); + } + + // nodejs executable + return process.execPath; +} + +export function getNpxPath() { + let npxPath = 'npx'; + if (process.platform === 'win32') { + npxPath = getScriptRunnerPath().replace('node.exe', 'npx.cmd'); + } + return npxPath; } export function isCI(): boolean { @@ -41,6 +63,13 @@ export function injectSessionToken(profileName: string) { fs.writeFileSync(pathManager.getAWSCredentialsFilePath(), ini.stringify(credentialsContents)); } +export function injectRegion(profileName: string) { + const credentialsContents = ini.parse(fs.readFileSync(pathManager.getAWSConfigFilePath()).toString()); + credentialsContents[`profile ${profileName}`] = credentialsContents[`profile ${profileName}`] || {}; + credentialsContents[`profile ${profileName}`].region = process.env.CLI_REGION; + fs.writeFileSync(pathManager.getAWSConfigFilePath(), ini.stringify(credentialsContents)); +} + export function npmInstall(cwd: string) { spawnSync('npm', ['install'], { cwd }); } @@ -51,6 +80,7 @@ export async function installAmplifyCLI(version: string = 'latest') { env: process.env, stdio: 'inherit', }); + process.env.AMPLIFY_PATH = path.join(os.homedir(), '.npm-global', 'bin', 'amplify'); } export async function createNewProjectDir( diff --git a/packages/amplify-e2e-core/src/utils/nexpect.ts b/packages/amplify-e2e-core/src/utils/nexpect.ts index 373fec5f008..10079fa30c9 100644 --- a/packages/amplify-e2e-core/src/utils/nexpect.ts +++ b/packages/amplify-e2e-core/src/utils/nexpect.ts @@ -22,6 +22,7 @@ import retimer = require('retimer'); import { join, parse } from 'path'; import * as fs from 'fs-extra'; import * as os from 'os'; +import { getScriptRunnerPath } from '..'; const DEFAULT_NO_OUTPUT_TIMEOUT = process.env.AMPLIFY_TEST_TIMEOUT_SEC ? Number.parseInt(process.env.AMPLIFY_TEST_TIMEOUT_SEC, 10) * 1000 @@ -83,6 +84,7 @@ export type SpawnOptions = { stripColors?: boolean; ignoreCase?: boolean; disableCIDetection?: boolean; + useScriptRunner?: boolean; }; function chain(context: Context): ExecutionContext { @@ -621,6 +623,12 @@ export function nspawn(command: string | string[], params: string[] = [], option params = params || parsedArgs.slice(1); } + if (options.useScriptRunner === false) { + params.unshift(command); + const testingWithLatestCodebase = !(command.endsWith('exec') || command.endsWith('powershell.exe')); + command = getScriptRunnerPath(testingWithLatestCodebase); + } + let childEnv = undefined; let pushEnv = undefined; diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 18035cb17ec..eb1d1de259d 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -5,6 +5,63 @@ import * as fs from 'fs-extra'; import { supportedRegions } from '../packages/amplify-category-geo/src/constants'; const CONCURRENCY = 4; +// Some our e2e tests are known to fail when run on windows hosts +// These are caused by issues with our test harness, not broken cli behavior on windows +// (examples: sending line endings when we shouldn't, java/gradle not installed on windows host) +// Each of these failures should be independently investigated, resolved, and removed from this list. +// For now, this list is being used to skip creation of circleci jobs for these tasks +const WINDOWS_TEST_FAILURES = [ + 'amplify-app-amplify_e2e_tests', + 'api_2-amplify_e2e_tests', + 'api_4-amplify_e2e_tests', + 'api_5-amplify_e2e_tests', + 'auth_1-amplify_e2e_tests', + 'auth_2-amplify_e2e_tests', + 'auth_3-amplify_e2e_tests', + 'datastore-modelgen-amplify_e2e_tests', + 'env-amplify_e2e_tests', + 'function_3-amplify_e2e_tests', + 'function_4-amplify_e2e_tests', + 'function_6-amplify_e2e_tests', + 'function_7-amplify_e2e_tests', + 'hosting-amplify_e2e_tests', + 'hostingPROD-amplify_e2e_tests', + 'import_auth_1-amplify_e2e_tests', + 'import_auth_2-amplify_e2e_tests', + 'import_dynamodb_1-amplify_e2e_tests', + 'import_dynamodb_2-amplify_e2e_tests', + 'import_s3_1-amplify_e2e_tests', + 'layer-amplify_e2e_tests', + 'layer-2-amplify_e2e_tests', + 'migration-api-connection-migration-amplify_e2e_tests', + 'migration-api-key-migration1-amplify_e2e_tests', + 'migration-api-key-migration2-amplify_e2e_tests', + 'migration-api-key-migration3-amplify_e2e_tests', + 'migration-node-function-amplify_e2e_tests', + 'schema-auth-1-amplify_e2e_tests', + 'schema-auth-2-amplify_e2e_tests', + 'schema-auth-3-amplify_e2e_tests', + 'schema-auth-4-amplify_e2e_tests', + 'schema-auth-5-amplify_e2e_tests', + 'schema-auth-6-amplify_e2e_tests', + 'schema-auth-7-amplify_e2e_tests', + 'schema-auth-8-amplify_e2e_tests', + 'schema-auth-9-amplify_e2e_tests', + 'schema-auth-10-amplify_e2e_tests', + 'schema-auth-11-amplify_e2e_tests', + 'schema-data-access-patterns-amplify_e2e_tests', + 'schema-function-amplify_e2e_tests', + 'schema-iterative-update-1-amplify_e2e_tests', + 'schema-iterative-update-2-amplify_e2e_tests', + 'schema-iterative-update-3-amplify_e2e_tests', + 'schema-iterative-update-4-amplify_e2e_tests', + 'schema-iterative-update-locking-amplify_e2e_tests', + 'schema-iterative-rollback-1-amplify_e2e_tests', + 'schema-iterative-rollback-2-amplify_e2e_tests', + 'schema-model-amplify_e2e_tests', + 'storage-amplify_e2e_tests', +]; + // Ensure to update packages/amplify-e2e-tests/src/cleanup-e2e-resources.ts is also updated this gets updated const AWS_REGIONS_TO_RUN_TESTS = [ 'us-east-2', @@ -16,6 +73,21 @@ const AWS_REGIONS_TO_RUN_TESTS = [ 'ap-southeast-2', ]; +// Some services (eg. amazon lex) are not available in all regions +// Tests added to this list will always run in us-west-2 +const FORCE_US_WEST_2 = ['interactions-amplify_e2e_tests']; + +const USE_PARENT_ACCOUNT = [ + 'auth_2-amplify_e2e_tests', + 'auth_3-amplify_e2e_tests', + 'auth_5-amplify_e2e_tests', + 'auth_6-amplify_e2e_tests', + 'env-amplify_e2e_tests_pkg_linux', + 'migration-node-function-amplify_e2e_tests', + 'schema-function-amplify_e2e_tests', + 'schema-iterative-update-locking-amplify_e2e_tests', +]; + // This array needs to be update periodically when new tests suites get added // or when a test suite changes drastically @@ -78,6 +150,7 @@ const KNOWN_SUITES_SORTED_ACCORDING_TO_RUNTIME = [ 'src/__tests__/schema-auth-9.test.ts', 'src/__tests__/schema-auth-11.test.ts', 'src/__tests__/migration/api.key.migration2.test.ts', + 'src/__tests__/migration/api.key.migration3.test.ts', 'src/__tests__/function_1.test.ts', 'src/__tests__/schema-auth-1.test.ts', 'src/__tests__/function_4.test.ts', @@ -95,6 +168,8 @@ const KNOWN_SUITES_SORTED_ACCORDING_TO_RUNTIME = [ //<55m 'src/__tests__/storage.test.ts', 'src/__tests__/api_2.test.ts', + 'src/__tests__/api_5.test.ts', + 'src/__tests__/api_6.test.ts', 'src/__tests__/schema-iterative-update-4.test.ts', ]; @@ -134,7 +209,8 @@ export type CircleCIConfig = { }; function getTestFiles(dir: string, pattern = 'src/**/*.test.ts'): string[] { - return sortTestsBasedOnTime(glob.sync(pattern, { cwd: dir })).reverse(); + // Todo: add reverse to run longest tests first + return sortTestsBasedOnTime(glob.sync(pattern, { cwd: dir })); // .reverse(); } function generateJobName(baseName: string, testSuitePath: string): string { @@ -169,16 +245,19 @@ function splitTests( const newJobs = testSuites.reduce((acc, suite, index) => { const supportedRegions = getSupportedRegions(suite); - const testRegion = supportedRegions[index % supportedRegions.length]; + const newJobName = generateJobName(jobName, suite); + const testRegion = FORCE_US_WEST_2.some(job => newJobName.startsWith(job)) + ? 'us-west-2' + : supportedRegions[index % supportedRegions.length]; const newJob = { ...job, environment: { - ...job.environment, + ...(job?.environment || {}), TEST_SUITE: suite, CLI_REGION: testRegion, + ...(USE_PARENT_ACCOUNT.some(job => newJobName.startsWith(job)) ? { USE_PARENT_ACCOUNT: 1 } : {}), }, }; - const newJobName = generateJobName(jobName, suite); return { ...acc, [newJobName]: newJob }; }, {}); @@ -216,6 +295,14 @@ function splitTests( [newJobName]: { ...Object.values(workflowJob)[0], requires: [...(requires ? [requires] : workflowJob[jobName].requires || [])], + matrix: { + parameters: { + os: + WINDOWS_TEST_FAILURES.some(failingJob => newJobName.startsWith(failingJob)) || !newJobName.endsWith('_pkg_linux') + ? ['linux'] + : ['linux', 'windows'], + }, + }, }, }; } @@ -319,7 +406,7 @@ function loadConfig(): CircleCIConfig { function saveConfig(config: CircleCIConfig): void { const configFile = join(process.cwd(), '.circleci', 'config.yml'); - const output = ['# auto generated file. Edit config.base.yaml if you want to change', yaml.dump(config)]; + const output = ['# auto generated file. Edit config.base.yaml if you want to change', yaml.dump(config, { noRefs: true })]; fs.writeFileSync(configFile, output.join('\n')); } function main(): void { From fd6452cd36ae81aab81a37080b094ec6a50285e7 Mon Sep 17 00:00:00 2001 From: John Corser Date: Tue, 21 Sep 2021 14:53:58 -0400 Subject: [PATCH 2/9] chore: update cirlce config --- .circleci/config.base.yml | 170 +-- .circleci/config.yml | 2836 +++++++++++++++++++++++++++++++------ 2 files changed, 2489 insertions(+), 517 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 45adfc840e3..6c24ccd4b7a 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -1,5 +1,6 @@ version: 2.1 - +orbs: + aws-ecr: circleci/aws-ecr@6.15.3 machine: environment: PATH: '${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin' @@ -36,7 +37,10 @@ executors: node12: &node12 working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large defaults: &defaults @@ -95,15 +99,10 @@ jobs: parameters: os: type: executor - default: os.build_img + default: build_img executor: << parameters.os >> steps: - checkout - - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - install_yarn: - os: << parameters.os >> - run: yarn run production-build - run: name: Start verdaccio and package CLI @@ -119,36 +118,27 @@ jobs: paths: - ~/repo/out - save_cache: - key: amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - paths: - - ./**/node_modules - - ./node_modules - - save_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} paths: - - . + - ~/.cache - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh - # - persist_to_workspace: - # root: . - # paths: packages + - persist_to_workspace: + root: . + paths: . test: - parameters: - os: - type: executor - default: os.build_img - executor: << parameters.os >> + <<: *node12 steps: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - install_java: - os: <> + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - run: + name: Install Java + command: sudo apt-get update && sudo apt-get install default-jdk - run: name: Lint command: yarn lint @@ -160,23 +150,18 @@ jobs: command: yarn coverage mock_e2e_tests: - parameters: - os: - type: executor - default: os.build_img - executor: << parameters.os >> + <<: *node12 steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - - install_java: - os: <> + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - run: + name: Install Java + command: sudo apt-get update && sudo apt-get install default-jdk - run: name: Run Transformer end-to-end tests with mock server - command: | - cd packages/amplify-util-mock/ - yarn e2e + command: cd packages/amplify-util-mock/ && yarn e2e no_output_timeout: 90m environment: JEST_JUNIT_OUTPUT: 'reports/junit/js-test-results.xml' @@ -189,9 +174,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Publish to verdaccio command: | @@ -231,8 +214,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -255,8 +237,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run GraphQL end-to-end tests command: cd packages/graphql-transformers-e2e-tests/ && yarn e2e --maxWorkers=3 @@ -274,8 +255,6 @@ jobs: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Update OS Packages command: sudo apt-get update @@ -315,7 +294,7 @@ jobs: steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_e2e_tests: + done_with_pkg_linux_e2e_tests: <<: *node12 steps: - run: echo 'Done with pkg CLI E2E Tests' @@ -355,8 +334,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -428,8 +406,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Update OS Packages command: sudo apt-get update @@ -454,8 +431,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run tests migrating from latest CLI command: | @@ -478,8 +454,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: *install_cli_from_local_registery - run: command: | @@ -501,7 +476,7 @@ jobs: working_directory: ~/repo resource_class: large docker: - - image: cypress/base:14.17.0 + - image: cypress/base:12 environment: TERM: dumb steps: @@ -624,10 +599,6 @@ jobs: steps: - attach_workspace: at: ./ - - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplify-unified-changelog-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -668,9 +639,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplfiy-pkg-tag-{{ .Branch }}-{{ .Revision }} - run: @@ -684,9 +653,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: 'Run cleanup script' command: | @@ -704,9 +671,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: 'Run cleanup script' command: | @@ -729,10 +694,7 @@ workflows: only: - master jobs: - - build: - matrix: - parameters: - os: [windows, build_img] + - build - publish_to_local_registry: requires: - build @@ -754,10 +716,7 @@ workflows: only: - master jobs: - - build: - matrix: - parameters: - os: [build_img] + - build - cleanup_resources: context: - cleanup-resources @@ -767,20 +726,11 @@ workflows: build_test_deploy: jobs: - - build: - matrix: - parameters: - os: [build_img, windows] + - build - test: - matrix: - parameters: - os: [build_img] requires: - - build-build_img + - build - mock_e2e_tests: - matrix: - parameters: - os: [build_img] requires: - build - graphql_e2e_tests: @@ -791,11 +741,10 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build-build_img + - build - mock_e2e_tests - integration_test: context: @@ -805,25 +754,23 @@ workflows: branches: only: - master - - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build-build_img + - build - mock_e2e_tests - publish_to_local_registry: filters: branches: only: - master - - win-e2e - beta - release - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build-build_img + - build - build_pkg_binaries: requires: - publish_to_local_registry @@ -835,7 +782,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - amplify_e2e_tests: @@ -844,25 +790,20 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - # post-steps: - # - run: *clean_e2e_resources + post-steps: + - run: *clean_e2e_resources filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - publish_to_local_registry - done_with_node_e2e_tests: requires: - amplify_e2e_tests - - amplify_e2e_tests_pkg: - matrix: - parameters: - os: [windows] + - amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -871,20 +812,15 @@ workflows: filters: branches: only: - - win-e2e - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build + - done_with_node_e2e_tests - build_pkg_binaries - - done_with_pkg_e2e_tests: - context: - - amplify-cli-ecr - - amplify-cli-aws-creds-< matrix.os >> + - done_with_pkg_linux_e2e_tests: requires: - - amplify_e2e_tests_pkg + - amplify_e2e_tests_pkg_linux - amplify_migration_tests_latest: context: - amplify-ecr-image-pull @@ -895,7 +831,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -910,7 +845,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -925,7 +859,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -940,7 +873,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -955,7 +887,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -996,7 +927,7 @@ workflows: - cleanup-resources - e2e-test-context requires: - - done_with_pkg_e2e_tests + - done_with_pkg_linux_e2e_tests - amplify_migration_tests_latest - amplify_migration_tests_v4 - amplify_migration_tests_v4_30_0 @@ -1011,7 +942,7 @@ workflows: - mock_e2e_tests - graphql_e2e_tests - integration_test - - done_with_pkg_e2e_tests + - done_with_pkg_linux_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest @@ -1025,7 +956,6 @@ workflows: only: - release - master - - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ diff --git a/.circleci/config.yml b/.circleci/config.yml index 52455906c44..364447daa72 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,7 @@ # auto generated file. Edit config.base.yaml if you want to change version: 2.1 +orbs: + aws-ecr: circleci/aws-ecr@6.15.3 machine: environment: PATH: ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin @@ -32,7 +34,10 @@ executors: node12: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large defaults: working_directory: ~/repo @@ -85,15 +90,10 @@ jobs: parameters: os: type: executor - default: os.build_img + default: build_img executor: << parameters.os >> steps: - checkout - - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - install_yarn: - os: << parameters.os >> - run: yarn run production-build - run: name: Start verdaccio and package CLI @@ -109,32 +109,32 @@ jobs: paths: - ~/repo/out - save_cache: - key: amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - paths: - - ./**/node_modules - - ./node_modules - - save_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} paths: - - . + - ~/.cache - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh + - persist_to_workspace: + root: . + paths: . test: - parameters: - os: - type: executor - default: os.build_img - executor: << parameters.os >> + working_directory: ~/repo + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - install_java: - os: <> + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - run: + name: Install Java + command: sudo apt-get update && sudo apt-get install default-jdk - run: name: Lint command: yarn lint @@ -145,23 +145,24 @@ jobs: name: Collect code coverage command: yarn coverage mock_e2e_tests: - parameters: - os: - type: executor - default: os.build_img - executor: << parameters.os >> + working_directory: ~/repo + docker: + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN + resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - - install_java: - os: <> + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + - run: + name: Install Java + command: sudo apt-get update && sudo apt-get install default-jdk - run: name: Run Transformer end-to-end tests with mock server - command: | - cd packages/amplify-util-mock/ - yarn e2e + command: cd packages/amplify-util-mock/ && yarn e2e no_output_timeout: 90m environment: JEST_JUNIT_OUTPUT: reports/junit/js-test-results.xml @@ -170,15 +171,16 @@ jobs: publish_to_local_registry: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Publish to verdaccio command: | @@ -214,14 +216,16 @@ jobs: build_pkg_binaries: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -248,8 +252,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run GraphQL end-to-end tests command: >- @@ -274,8 +277,6 @@ jobs: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - run: name: Update OS Packages command: sudo apt-get update @@ -345,14 +346,20 @@ jobs: done_with_node_e2e_tests: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_e2e_tests: + done_with_pkg_linux_e2e_tests: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - run: echo 'Done with pkg CLI E2E Tests' @@ -395,8 +402,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -509,8 +515,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Update OS Packages command: sudo apt-get update @@ -546,8 +551,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run tests migrating from latest CLI command: | @@ -581,8 +585,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: name: Start verdaccio, install node CLI and amplify-app command: | @@ -620,7 +623,7 @@ jobs: working_directory: ~/repo resource_class: large docker: - - image: cypress/base:14.17.0 + - image: cypress/base:12 environment: TERM: dumb steps: @@ -739,7 +742,10 @@ jobs: deploy: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: @@ -766,15 +772,14 @@ jobs: github_prerelease: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} - restore_cache: key: amplify-unified-changelog-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -796,7 +801,10 @@ jobs: github_prerelease_install_sanity_check: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - restore_cache: @@ -817,15 +825,16 @@ jobs: github_release: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplfiy-pkg-tag-{{ .Branch }}-{{ .Revision }} - run: @@ -836,15 +845,16 @@ jobs: cleanup_resources: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run cleanup script command: | @@ -865,15 +875,16 @@ jobs: cleanup_resources_after_e2e_runs: working_directory: ~/repo docker: - - image: ${AWS_ECR_ACCOUNT_URL}/amplify-cli-e2e-base-image-repo-public:latest + - image: circleci/node:12 + auth: + username: $DOCKERHUB_USERNAME + password: $DOCKERHUB_ACCESS_TOKEN resource_class: large steps: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} - - amplify-cli-yarn-deps-{{ arch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} - run: name: Run cleanup script command: | @@ -7964,12 +7975,7 @@ workflows: only: - master jobs: - - build: - matrix: - parameters: - os: - - windows - - build_img + - build - publish_to_local_registry: requires: - build @@ -7991,11 +7997,7 @@ workflows: only: - master jobs: - - build: - matrix: - parameters: - os: - - build_img + - build - cleanup_resources: context: - cleanup-resources @@ -8004,24 +8006,11 @@ workflows: - build build_test_deploy: jobs: - - build: - matrix: - parameters: - os: - - build_img - - windows + - build - test: - matrix: - parameters: - os: - - build_img requires: - - build-build_img + - build - mock_e2e_tests: - matrix: - parameters: - os: - - build_img requires: - build - graphql_e2e_tests: @@ -8032,11 +8021,10 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build-build_img + - build - mock_e2e_tests - integration_test: context: @@ -8046,25 +8034,23 @@ workflows: branches: only: - master - - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build-build_img + - build - mock_e2e_tests - publish_to_local_registry: filters: branches: only: - master - - win-e2e - beta - release - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build-build_img + - build - build_pkg_binaries: requires: - publish_to_local_registry @@ -8076,7 +8062,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - done_with_node_e2e_tests: @@ -8109,33 +8094,36 @@ workflows: - auth_2-amplify_e2e_tests - schema-function-amplify_e2e_tests - api_1-amplify_e2e_tests - - amplify_e2e_tests_pkg: - matrix: - parameters: - os: - - windows - context: - - amplify-ecr-image-pull - - clean_e2e_resources - - e2e-auth-credentials - - e2e-test-context - filters: - branches: - only: - - win-e2e - - master - - win-e2e - - /tagged-release\/.*/ - - /run-e2e\/*./ - requires: - - build - - build_pkg_binaries - - done_with_pkg_e2e_tests: - context: - - amplify-cli-ecr - - amplify-cli-aws-creds-< matrix.os >> + - done_with_pkg_linux_e2e_tests: requires: - - amplify_e2e_tests_pkg + - import_auth_2-amplify_e2e_tests_pkg_linux + - schema-auth-9-amplify_e2e_tests_pkg_linux + - schema-model-amplify_e2e_tests_pkg_linux + - schema-auth-5-amplify_e2e_tests_pkg_linux + - import_s3_1-amplify_e2e_tests_pkg_linux + - schema-auth-11-amplify_e2e_tests_pkg_linux + - migration-api-connection-migration-amplify_e2e_tests_pkg_linux + - storage-amplify_e2e_tests_pkg_linux + - import_dynamodb_1-amplify_e2e_tests_pkg_linux + - migration-api-key-migration2-amplify_e2e_tests_pkg_linux + - schema-connection-amplify_e2e_tests_pkg_linux + - api_2-amplify_e2e_tests_pkg_linux + - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux + - function_1-amplify_e2e_tests_pkg_linux + - schema-auth-6-amplify_e2e_tests_pkg_linux + - schema-iterative-update-4-amplify_e2e_tests_pkg_linux + - schema-auth-4-amplify_e2e_tests_pkg_linux + - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux + - schema-auth-1-amplify_e2e_tests_pkg_linux + - schema-iterative-update-3-amplify_e2e_tests_pkg_linux + - api_3-amplify_e2e_tests_pkg_linux + - env-amplify_e2e_tests_pkg_linux + - function_4-amplify_e2e_tests_pkg_linux + - schema-auth-2-amplify_e2e_tests_pkg_linux + - import_auth_1-amplify_e2e_tests_pkg_linux + - auth_2-amplify_e2e_tests_pkg_linux + - schema-function-amplify_e2e_tests_pkg_linux + - api_1-amplify_e2e_tests_pkg_linux - amplify_migration_tests_latest: context: - amplify-ecr-image-pull @@ -8146,7 +8134,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8161,7 +8148,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8176,7 +8162,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8191,7 +8176,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8206,7 +8190,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8253,7 +8236,7 @@ workflows: - cleanup-resources - e2e-test-context requires: - - done_with_pkg_e2e_tests + - done_with_pkg_linux_e2e_tests - amplify_migration_tests_latest - amplify_migration_tests_v4 - amplify_migration_tests_v4_30_0 @@ -8267,7 +8250,7 @@ workflows: - mock_e2e_tests - graphql_e2e_tests - integration_test - - done_with_pkg_e2e_tests + - done_with_pkg_linux_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest @@ -8281,7 +8264,6 @@ workflows: only: - release - master - - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ @@ -8299,15 +8281,21 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - publish_to_local_registry matrix: parameters: @@ -8319,15 +8307,21 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - publish_to_local_registry matrix: parameters: @@ -8339,15 +8333,21 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - publish_to_local_registry matrix: parameters: @@ -8359,15 +8359,21 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - publish_to_local_registry matrix: parameters: @@ -8379,11 +8385,18 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8398,11 +8411,18 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8417,11 +8437,18 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8436,11 +8463,18 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8455,11 +8489,18 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8474,11 +8515,18 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8493,11 +8541,18 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo filters: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8512,20 +8567,2045 @@ workflows: - clean_e2e_resources - e2e-auth-credentials - e2e-test-context - filters: - branches: - only: - - master - - win-e2e - - /tagged-release\/.*/ - - /run-e2e\/*./ - requires: + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: - auth_4-amplify_e2e_tests matrix: parameters: os: - linux - - auth_6-amplify_e2e_tests: + - auth_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - hooks-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - plugin-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-versioned-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - interactions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_6-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - feature-flags-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - hooks-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - plugin-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-7-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-versioned-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - import_s3_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - interactions-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-11-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - feature-flags-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - migration-api-connection-migration-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-3-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - storage-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-7-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - configure-project-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - iam-permissions-boundary-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - init-special-case-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-data-access-patterns-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-iterative-update-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - configure-project-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-10-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - iam-permissions-boundary-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - delete-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - init-special-case-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-8-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-data-access-patterns-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - import_dynamodb_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-iterative-update-2-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - migration-api-key-migration2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-10-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-connection-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - delete-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - api_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-auth-8-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - container-hosting-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - layer-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - datastore-modelgen-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - containers-api-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-key-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - container-hosting-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - layer-2-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-searchable-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - datastore-modelgen-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - containers-api-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-key-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - function_2-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-update-4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-searchable-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - frontend_config_drift-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - migration-node-function-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - amplify-configure-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - schema-predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - predictions-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - frontend_config_drift-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - migration-node-function-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - amplify-configure-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-predictions-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-rollback-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - predictions-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_1-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-iterative-update-3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_3-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - pull-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - init-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - amplify-app-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - hostingPROD-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - function_5-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - geo-add-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - pull-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_5-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - init-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - layer-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - amplify-app-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - api_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - hostingPROD-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - env-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - geo-add-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_4-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_5-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-auth-2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - layer-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_6-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - s3-sse-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - tags-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - hosting-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - publish_to_local_registry + matrix: + parameters: + os: + - linux + - geo-update-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - function_6-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - function_3-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - s3-sse-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - migration-api-key-migration1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - tags-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - import_auth_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - hosting-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - auth_2-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - geo-update-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - schema-function-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - function_3-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - api_1-amplify_e2e_tests: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + post-steps: + - run: + name: Cleanup resources + command: | + pwd + cd packages/amplify-e2e-tests + yarn clean-e2e-resources job ${CIRCLE_BUILD_NUM} + working_directory: ~/repo + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - migration-api-key-migration1-amplify_e2e_tests + matrix: + parameters: + os: + - linux + - api_4-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - function_7-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - notifications-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - done_with_node_e2e_tests + - build_pkg_binaries + matrix: + parameters: + os: + - linux + - windows + - analytics-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - api_4-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - windows + - geo-remove-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - function_7-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - windows + - schema-iterative-update-1-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - auth_4-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - notifications-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - windows + - import_auth_2-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - analytics-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - schema-auth-9-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - geo-remove-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - schema-model-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - schema-iterative-update-1-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - schema-auth-5-amplify_e2e_tests_pkg_linux: + context: + - amplify-ecr-image-pull + - clean_e2e_resources + - e2e-auth-credentials + - e2e-test-context + filters: + branches: + only: + - master + - /tagged-release\/.*/ + - /run-e2e\/*./ + requires: + - auth_4-amplify_e2e_tests_pkg_linux + matrix: + parameters: + os: + - linux + - auth_6-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8535,17 +10615,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - hooks-amplify_e2e_tests: + - windows + - hooks-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8555,17 +10635,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - plugin-amplify_e2e_tests: + - windows + - plugin-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8575,17 +10655,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - schema-versioned-amplify_e2e_tests: + - windows + - schema-versioned-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8595,17 +10675,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - interactions-amplify_e2e_tests: + - windows + - interactions-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8615,16 +10695,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_6-amplify_e2e_tests + - auth_6-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - feature-flags-amplify_e2e_tests: + - windows + - feature-flags-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8634,16 +10714,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hooks-amplify_e2e_tests + - hooks-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests: + - windows + - schema-auth-3-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8653,16 +10733,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - plugin-amplify_e2e_tests + - plugin-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-7-amplify_e2e_tests: + - schema-auth-7-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8672,16 +10751,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-versioned-amplify_e2e_tests + - schema-versioned-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - import_s3_1-amplify_e2e_tests: + - import_s3_1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8691,16 +10769,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - interactions-amplify_e2e_tests + - interactions-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-11-amplify_e2e_tests: + - schema-auth-11-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8710,16 +10787,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - feature-flags-amplify_e2e_tests + - feature-flags-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests: + - migration-api-connection-migration-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8729,16 +10805,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-3-amplify_e2e_tests + - schema-auth-3-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - storage-amplify_e2e_tests: + - storage-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8748,16 +10823,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-7-amplify_e2e_tests + - schema-auth-7-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - configure-project-amplify_e2e_tests: + - configure-project-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8767,17 +10841,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - iam-permissions-boundary-amplify_e2e_tests: + - windows + - iam-permissions-boundary-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8787,17 +10861,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - init-special-case-amplify_e2e_tests: + - windows + - init-special-case-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8807,17 +10881,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - schema-data-access-patterns-amplify_e2e_tests: + - windows + - schema-data-access-patterns-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8827,17 +10901,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests: + - schema-iterative-update-2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8847,16 +10920,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - configure-project-amplify_e2e_tests + - configure-project-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests: + - schema-auth-10-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8866,16 +10938,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - iam-permissions-boundary-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - delete-amplify_e2e_tests: + - delete-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8885,16 +10956,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - init-special-case-amplify_e2e_tests + - init-special-case-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests: + - windows + - schema-auth-8-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8904,16 +10975,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-data-access-patterns-amplify_e2e_tests + - schema-data-access-patterns-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests: + - import_dynamodb_1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8923,16 +10993,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-iterative-update-2-amplify_e2e_tests + - schema-iterative-update-2-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests: + - migration-api-key-migration2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8942,16 +11011,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-10-amplify_e2e_tests + - schema-auth-10-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-connection-amplify_e2e_tests: + - schema-connection-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8961,16 +11029,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - delete-amplify_e2e_tests + - delete-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - api_2-amplify_e2e_tests: + - windows + - api_2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8980,16 +11048,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-8-amplify_e2e_tests + - schema-auth-8-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - container-hosting-amplify_e2e_tests: + - container-hosting-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -8999,17 +11066,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - layer-2-amplify_e2e_tests: + - windows + - layer-2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9019,17 +11086,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests: + - datastore-modelgen-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9039,17 +11105,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - containers-api-amplify_e2e_tests: + - containers-api-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9059,17 +11124,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - schema-key-amplify_e2e_tests: + - windows + - schema-key-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9079,16 +11144,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - container-hosting-amplify_e2e_tests + - container-hosting-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - function_2-amplify_e2e_tests: + - windows + - function_2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9098,16 +11163,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - layer-2-amplify_e2e_tests + - layer-2-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-searchable-amplify_e2e_tests: + - windows + - schema-searchable-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9117,16 +11182,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - datastore-modelgen-amplify_e2e_tests + - datastore-modelgen-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-iterative-rollback-1-amplify_e2e_tests: + - windows + - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9136,16 +11201,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - containers-api-amplify_e2e_tests + - containers-api-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - function_1-amplify_e2e_tests: + - function_1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9155,16 +11219,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-key-amplify_e2e_tests + - schema-key-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests: + - windows + - schema-auth-6-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9174,16 +11238,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_2-amplify_e2e_tests + - function_2-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests: + - schema-iterative-update-4-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9193,16 +11256,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-searchable-amplify_e2e_tests + - schema-searchable-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - frontend_config_drift-amplify_e2e_tests: + - frontend_config_drift-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9212,17 +11274,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - migration-node-function-amplify_e2e_tests: + - windows + - migration-node-function-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9232,17 +11294,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - amplify-configure-amplify_e2e_tests: + - amplify-configure-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9252,17 +11313,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - schema-predictions-amplify_e2e_tests: + - windows + - schema-predictions-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9272,17 +11333,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - predictions-amplify_e2e_tests: + - windows + - predictions-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9292,16 +11353,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - frontend_config_drift-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - auth_1-amplify_e2e_tests: + - windows + - auth_1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9311,16 +11372,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - migration-node-function-amplify_e2e_tests + - migration-node-function-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - auth_3-amplify_e2e_tests: + - auth_3-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9330,16 +11390,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - amplify-configure-amplify_e2e_tests + - amplify-configure-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests: + - schema-auth-4-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9349,16 +11408,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-predictions-amplify_e2e_tests + - schema-predictions-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests: + - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9368,16 +11426,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - predictions-amplify_e2e_tests + - predictions-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests: + - schema-auth-1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9387,16 +11444,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_1-amplify_e2e_tests + - auth_1-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests: + - schema-iterative-update-3-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9406,16 +11462,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_3-amplify_e2e_tests + - auth_3-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - function_5-amplify_e2e_tests: + - function_5-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9425,17 +11480,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - pull-amplify_e2e_tests: + - windows + - pull-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9445,17 +11500,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - init-amplify_e2e_tests: + - windows + - init-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9465,17 +11520,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - amplify-app-amplify_e2e_tests: + - windows + - amplify-app-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9485,17 +11540,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - hostingPROD-amplify_e2e_tests: + - hostingPROD-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9505,16 +11559,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_5-amplify_e2e_tests + - function_5-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - geo-add-amplify_e2e_tests: + - geo-add-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9524,16 +11577,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - pull-amplify_e2e_tests + - pull-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - auth_5-amplify_e2e_tests: + - windows + - auth_5-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9543,16 +11596,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - init-amplify_e2e_tests + - init-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - layer-amplify_e2e_tests: + - windows + - layer-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9562,16 +11615,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - amplify-app-amplify_e2e_tests + - amplify-app-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - api_3-amplify_e2e_tests: + - api_3-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9581,16 +11633,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hostingPROD-amplify_e2e_tests + - hostingPROD-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - env-amplify_e2e_tests: + - windows + - env-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9600,16 +11652,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-add-amplify_e2e_tests + - geo-add-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - function_4-amplify_e2e_tests: + - function_4-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9619,16 +11670,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_5-amplify_e2e_tests + - auth_5-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests: + - schema-auth-2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9638,16 +11688,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - layer-amplify_e2e_tests + - layer-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - function_6-amplify_e2e_tests: + - function_6-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9657,17 +11706,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - s3-sse-amplify_e2e_tests: + - s3-sse-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9677,17 +11725,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - tags-amplify_e2e_tests: + - windows + - tags-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9697,17 +11745,17 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - hosting-amplify_e2e_tests: + - windows + - hosting-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9717,17 +11765,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - build - - publish_to_local_registry + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - geo-update-amplify_e2e_tests: + - geo-update-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9737,16 +11784,16 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_6-amplify_e2e_tests + - function_6-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - function_3-amplify_e2e_tests: + - windows + - function_3-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9756,16 +11803,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - s3-sse-amplify_e2e_tests + - s3-sse-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests: + - migration-api-key-migration1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9775,16 +11821,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - tags-amplify_e2e_tests + - tags-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - import_auth_1-amplify_e2e_tests: + - import_auth_1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9794,16 +11839,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hosting-amplify_e2e_tests + - hosting-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - auth_2-amplify_e2e_tests: + - auth_2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9813,16 +11857,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-update-amplify_e2e_tests + - geo-update-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - schema-function-amplify_e2e_tests: + - schema-function-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9832,16 +11875,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_3-amplify_e2e_tests + - function_3-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux - - api_1-amplify_e2e_tests: + - api_1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -9851,15 +11893,15 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - migration-api-key-migration1-amplify_e2e_tests + - migration-api-key-migration1-amplify_e2e_tests_pkg_linux matrix: parameters: os: - linux + - windows commands: install_packaged_cli: description: Install Amplify Packaged CLI to PATH From bbdef5f61fe8fc2c2311f139675668afc66c0b9a Mon Sep 17 00:00:00 2001 From: John Corser Date: Tue, 21 Sep 2021 14:57:22 -0400 Subject: [PATCH 3/9] chore: run on win-e2e branch --- .circleci/config.base.yml | 12 +++ .circleci/config.yml | 166 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 178 insertions(+) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index 6c24ccd4b7a..c1217287a00 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -741,6 +741,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -754,6 +755,7 @@ workflows: branches: only: - master + - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ @@ -765,6 +767,7 @@ workflows: branches: only: - master + - win-e2e - beta - release - /tagged-release\/.*/ @@ -782,6 +785,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - amplify_e2e_tests: @@ -796,6 +800,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -813,6 +818,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -831,6 +837,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -845,6 +852,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -859,6 +867,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -873,6 +882,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -887,6 +897,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -956,6 +967,7 @@ workflows: only: - release - master + - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ diff --git a/.circleci/config.yml b/.circleci/config.yml index 364447daa72..410dd47bea7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8021,6 +8021,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8034,6 +8035,7 @@ workflows: branches: only: - master + - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ @@ -8045,6 +8047,7 @@ workflows: branches: only: - master + - win-e2e - beta - release - /tagged-release\/.*/ @@ -8062,6 +8065,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - done_with_node_e2e_tests: @@ -8134,6 +8138,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8148,6 +8153,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8162,6 +8168,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8176,6 +8183,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8190,6 +8198,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8264,6 +8273,7 @@ workflows: only: - release - master + - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ @@ -8293,6 +8303,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8319,6 +8330,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8345,6 +8357,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8371,6 +8384,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8397,6 +8411,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8423,6 +8438,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8449,6 +8465,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8475,6 +8492,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8501,6 +8519,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8527,6 +8546,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8553,6 +8573,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8579,6 +8600,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8605,6 +8627,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8631,6 +8654,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8657,6 +8681,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8683,6 +8708,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8709,6 +8735,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8735,6 +8762,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8761,6 +8789,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8787,6 +8816,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8813,6 +8843,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8839,6 +8870,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8865,6 +8897,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8891,6 +8924,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8917,6 +8951,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8943,6 +8978,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8969,6 +9005,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8995,6 +9032,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9021,6 +9059,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9047,6 +9086,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9073,6 +9113,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9099,6 +9140,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9125,6 +9167,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9151,6 +9194,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9177,6 +9221,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9229,6 +9274,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9255,6 +9301,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9281,6 +9328,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9307,6 +9355,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9333,6 +9382,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9359,6 +9409,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9385,6 +9436,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9411,6 +9463,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9437,6 +9490,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9463,6 +9517,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9515,6 +9570,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9541,6 +9597,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9567,6 +9624,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9593,6 +9651,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9619,6 +9678,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9645,6 +9705,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9671,6 +9732,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9697,6 +9759,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9723,6 +9786,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9749,6 +9813,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9775,6 +9840,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9801,6 +9867,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9827,6 +9894,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9853,6 +9921,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9879,6 +9948,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9905,6 +9975,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9931,6 +10002,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9957,6 +10029,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9983,6 +10056,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10009,6 +10083,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10035,6 +10110,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10061,6 +10137,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10113,6 +10190,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10139,6 +10217,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10165,6 +10244,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10191,6 +10271,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10217,6 +10298,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10243,6 +10325,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10269,6 +10352,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10295,6 +10379,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10321,6 +10406,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10347,6 +10433,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10373,6 +10460,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10391,6 +10479,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10410,6 +10499,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10429,6 +10519,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10448,6 +10539,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10468,6 +10560,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10487,6 +10580,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10506,6 +10600,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10524,6 +10619,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10543,6 +10639,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10561,6 +10658,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10579,6 +10677,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10597,6 +10696,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10615,6 +10715,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10635,6 +10736,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10655,6 +10757,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10675,6 +10778,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10695,6 +10799,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10714,6 +10819,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10733,6 +10839,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10751,6 +10858,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10769,6 +10877,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10787,6 +10896,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10805,6 +10915,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10823,6 +10934,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10841,6 +10953,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10861,6 +10974,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10881,6 +10995,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10901,6 +11016,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10920,6 +11036,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10938,6 +11055,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10956,6 +11074,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10975,6 +11094,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10993,6 +11113,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11011,6 +11132,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11029,6 +11151,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11066,6 +11189,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11086,6 +11210,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11105,6 +11230,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11124,6 +11250,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11144,6 +11271,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11163,6 +11291,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11182,6 +11311,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11201,6 +11331,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11219,6 +11350,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11238,6 +11370,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11274,6 +11407,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11294,6 +11428,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11313,6 +11448,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11333,6 +11469,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11353,6 +11490,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11372,6 +11510,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11390,6 +11529,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11408,6 +11548,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11426,6 +11567,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11444,6 +11586,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11462,6 +11605,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11480,6 +11624,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11500,6 +11645,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11520,6 +11666,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11540,6 +11687,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11559,6 +11707,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11577,6 +11726,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11596,6 +11746,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11615,6 +11766,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11633,6 +11785,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11652,6 +11805,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11670,6 +11824,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11706,6 +11861,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11725,6 +11881,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11745,6 +11902,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11765,6 +11923,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11784,6 +11943,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11803,6 +11963,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11821,6 +11982,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11839,6 +12001,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11857,6 +12020,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11875,6 +12039,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11893,6 +12058,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: From d766f7d92940e1523ffd1039b365580f870d7c55 Mon Sep 17 00:00:00 2001 From: John Corser Date: Tue, 21 Sep 2021 18:17:31 -0400 Subject: [PATCH 4/9] chore: add missing exec circleci script --- .circleci/exec | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .circleci/exec diff --git a/.circleci/exec b/.circleci/exec new file mode 100755 index 00000000000..a6f2935a2e9 --- /dev/null +++ b/.circleci/exec @@ -0,0 +1,3 @@ +#/bin/bash + +exec "$@" From 7b5559f99791868e9b3599e9f1fb63af6be680d8 Mon Sep 17 00:00:00 2001 From: John Corser Date: Tue, 21 Sep 2021 18:20:45 -0400 Subject: [PATCH 5/9] chore: temporarily skip non-pkg e2e tests --- .circleci/config.base.yml | 124 +- .circleci/config.yml | 1646 +++++++++++++---- .circleci/local_publish_helpers.sh | 47 +- package.json | 4 +- .../src/consoleHosting/consoleHosting.ts | 45 +- .../src/pullAndInit/deleteProject.ts | 2 +- .../src/pullAndInit/pullProject.ts | 23 +- .../src/asciinema-recorder.ts | 1 + .../src/categories/analytics.ts | 4 +- .../amplify-e2e-core/src/categories/api.ts | 43 +- .../amplify-e2e-core/src/categories/auth.ts | 14 +- .../src/categories/interactions.ts | 2 +- .../src/categories/predictions.ts | 21 +- .../src/categories/storage.ts | 78 +- .../amplify-e2e-core/src/configure/index.ts | 5 +- packages/amplify-e2e-core/src/index.ts | 16 +- .../amplify-e2e-core/src/init/amplifyPull.ts | 2 +- .../amplify-e2e-core/src/init/amplifyPush.ts | 2 +- .../src/init/initProjectHelper.ts | 39 +- .../src/init/pull-headless.ts | 23 +- .../amplify-e2e-core/src/utils/nexpect.ts | 9 +- .../amplify-e2e-core/src/utils/pinpoint.ts | 23 +- .../__tests__/migration/node.function.test.ts | 2 +- packages/amplify-e2e-tests/src/codegen/add.ts | 2 +- .../amplify-e2e-tests/src/environment/env.ts | 2 +- .../src/init-special-cases/index.ts | 2 +- .../src/migration-helpers/init.ts | 23 +- scripts/split-e2e-tests.ts | 19 +- 28 files changed, 1652 insertions(+), 571 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index c1217287a00..ef298e567bc 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -13,8 +13,8 @@ executors: shell: powershell.exe working_directory: ~/repo environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe build_img: &build-executor docker: @@ -78,6 +78,7 @@ run_e2e_tests: &run_e2e_tests amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -104,38 +105,28 @@ jobs: steps: - checkout - run: yarn run production-build - - run: - name: Start verdaccio and package CLI - command: | - source .circleci/local_publish_helpers.sh - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - changeNpmGlobalPath - yarn pkg-all - unsetNpmRegistryUrl - - save_cache: - key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - paths: - - ~/repo/out - save_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} paths: - ~/.cache - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh - - persist_to_workspace: - root: . - paths: . - + - when: + condition: + equal: [*linux-e2e-executor, << parameters.os >>] + steps: + - persist_to_workspace: + root: . + paths: . test: <<: *node12 steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -155,7 +146,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -174,7 +165,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Publish to verdaccio command: | @@ -214,7 +205,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -237,7 +228,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Run GraphQL end-to-end tests command: cd packages/graphql-transformers-e2e-tests/ && yarn e2e --maxWorkers=3 @@ -275,8 +266,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -309,6 +299,10 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -334,7 +328,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -342,7 +338,7 @@ jobs: changeNpmGlobalPath cd packages/amplify-migration-tests yarn run migration_v4.0.0 --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m + no_output_timeout: 30m - run: *scan_e2e_test_artifacts - store_test_results: path: packages/amplify-migration-tests/ @@ -358,7 +354,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: Run tests migrating from CLI v4.28.2 command: | @@ -382,7 +380,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.52.0 command: | @@ -406,7 +406,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Update OS Packages command: sudo apt-get update @@ -426,16 +428,19 @@ jobs: working_directory: ~/repo amplify_migration_tests_latest: + environment: + AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify <<: *defaults steps: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from latest CLI command: | - yarn pkg-all source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests @@ -510,14 +515,14 @@ jobs: cd .. git clone $AUTH_CLONE_URL cd aws-amplify-cypress-auth - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x auth.sh - run: cd .circleci/ && chmod +x amplify_init.sh - run: cd .circleci/ && chmod +x amplify_init.exp - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-auth - run: expect .circleci/enable_auth.exp - run: cd ../aws-amplify-cypress-auth - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: cd ../aws-amplify-cypress-auth/src && cat $(find . -type f -name 'aws-exports*') - run: name: Start Auth test server in background @@ -544,12 +549,12 @@ jobs: cd .. git clone $API_CLONE_URL cd aws-amplify-cypress-api - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x api.sh - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-api - run: expect .circleci/enable_api.exp - run: cd ../aws-amplify-cypress-api - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: cd ../aws-amplify-cypress-api/src && cat $(find . -type f -name 'aws-exports*') - run: name: Start API test server in background @@ -653,7 +658,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: 'Run cleanup script' command: | @@ -671,7 +676,7 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ arch }} - run: name: 'Run cleanup script' command: | @@ -726,7 +731,13 @@ workflows: build_test_deploy: jobs: - - build + - build: + matrix: + parameters: + os: + - linux + - windows + - build_img - test: requires: - build @@ -805,6 +816,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries - done_with_node_e2e_tests: requires: - amplify_e2e_tests @@ -842,6 +854,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_v4: context: - amplify-ecr-image-pull @@ -857,6 +870,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_v4_30_0: context: - amplify-ecr-image-pull @@ -872,6 +886,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_non_multi_env_layers: context: - amplify-ecr-image-pull @@ -887,6 +902,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_multi_env_layers: context: - amplify-ecr-image-pull @@ -902,6 +918,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_console_integration_tests: context: - amplify-ecr-image-pull @@ -996,13 +1013,13 @@ commands: name: Rename the Packaged CLI to amplify command: | # rename the command to amplify - cd $env:homedrive\$env:homepath\repo\out - mv amplify-pkg-win.exe amplify.exe + cd /home/circleci/repo/out + cp amplify-pkg-win.exe amplify.exe - run: name: Move to CLI Binary to already existing PATH command: | # This is a Hack to make sure the Amplify CLI is in the PATH - cp $env:homedrive\$env:homepath\repo\out\amplify.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps + cp /home/circleci/repo/out/amplify.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps - run: name: Confirm Amplify CLI is installed and available in PATH command: amplify version @@ -1038,8 +1055,8 @@ commands: - run: nvm install 12.22.5 - run: nvm use 12.22.5 - run: npm install -g yarn - - run: yarn dev-build - - run: yarn pkg-all + - run: yarn --cache-folder ~/.cache/yarn + - run: cp /home/circleci/repo/out/amplify-pkg-win.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe install_java: description: 'Install Java on Linux and Docker images' parameters: @@ -1069,11 +1086,17 @@ commands: condition: equal: [*windows-e2e-executor, << parameters.os >>] steps: + - run: + name: Install aws cli + command: msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi - run: name: Run E2E tests + shell: bash.exe command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/amplify-e2e-tests - yarn run e2e --detectOpenHandles --maxWorkers=3 $ENV:TEST_SUITE + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - when: condition: @@ -1081,11 +1104,18 @@ commands: - equal: [*linux-e2e-executor, << parameters.os >>] - equal: [*build-executor, << parameters.os >>] steps: + - run: + name: Shuffle AWS Credentials + command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials - run: name: Run E2E tests command: | source $BASH_ENV amplify version + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m diff --git a/.circleci/config.yml b/.circleci/config.yml index 410dd47bea7..3f1d4786acf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,8 +13,8 @@ executors: shell: powershell.exe working_directory: ~/repo environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe build_img: docker: - image: circleci/node:12 @@ -71,6 +71,7 @@ run_e2e_tests: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -95,30 +96,32 @@ jobs: steps: - checkout - run: yarn run production-build - - run: - name: Start verdaccio and package CLI - command: | - source .circleci/local_publish_helpers.sh - startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" - setNpmRegistryUrlToLocal - changeNpmGlobalPath - yarn pkg-all - unsetNpmRegistryUrl - - save_cache: - key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - paths: - - ~/repo/out - save_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} paths: - ~/.cache - save_cache: key: amplify-cli-ssh-deps-{{ .Branch }} paths: - ~/.ssh - - persist_to_workspace: - root: . - paths: . + - when: + condition: + equal: + - docker: + - image: >- + public.ecr.aws/a6e6w2n0/amplify-cli-e2e-base-image-repo-public:latest + working_directory: ~/repo + resource_class: large + environment: + AMPLIFY_DIR: /home/circleci/repo/out + AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux + - << parameters.os >> + steps: + - persist_to_workspace: + root: . + paths: . test: working_directory: ~/repo docker: @@ -131,7 +134,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -156,7 +161,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Install Java command: sudo apt-get update && sudo apt-get install default-jdk @@ -180,7 +187,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Publish to verdaccio command: | @@ -225,7 +234,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - run: @@ -252,7 +263,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run GraphQL end-to-end tests command: >- @@ -301,8 +314,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -326,6 +340,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -373,6 +388,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -402,7 +423,11 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.0.0 command: | @@ -410,7 +435,7 @@ jobs: changeNpmGlobalPath cd packages/amplify-migration-tests yarn run migration_v4.0.0 --maxWorkers=3 $TEST_SUITE - no_output_timeout: 90m + no_output_timeout: 30m - run: name: Scan And Cleanup E2E Test Artifacts command: | @@ -437,7 +462,11 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run tests migrating from CLI v4.28.2 command: > @@ -476,7 +505,11 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from CLI v4.52.0 command: > @@ -515,7 +548,11 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Update OS Packages command: sudo apt-get update @@ -541,6 +578,8 @@ jobs: - store_artifacts: path: ~/repo/packages/amplify-migration-tests/amplify-migration-reports amplify_migration_tests_latest: + environment: + AMPLIFY_PATH: /home/circleci/.npm-global/lib/node_modules/@aws-amplify/cli/bin/amplify working_directory: ~/repo parameters: os: @@ -551,11 +590,14 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - run: name: Run tests migrating from latest CLI command: | - yarn pkg-all source .circleci/local_publish_helpers.sh changeNpmGlobalPath cd packages/amplify-migration-tests @@ -660,14 +702,14 @@ jobs: cd .. git clone $AUTH_CLONE_URL cd aws-amplify-cypress-auth - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x auth.sh - run: cd .circleci/ && chmod +x amplify_init.sh - run: cd .circleci/ && chmod +x amplify_init.exp - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-auth - run: expect .circleci/enable_auth.exp - run: cd ../aws-amplify-cypress-auth - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: >- cd ../aws-amplify-cypress-auth/src && cat $(find . -type f -name 'aws-exports*') @@ -696,12 +738,12 @@ jobs: cd .. git clone $API_CLONE_URL cd aws-amplify-cypress-api - yarn + yarn --cache-folder ~/.cache/yarn - run: cd .circleci/ && chmod +x api.sh - run: expect .circleci/amplify_init.exp ../aws-amplify-cypress-api - run: expect .circleci/enable_api.exp - run: cd ../aws-amplify-cypress-api - - run: yarn --frozen-lockfile + - run: yarn --frozen-lockfile --cache-folder ~/.cache/yarn - run: >- cd ../aws-amplify-cypress-api/src && cat $(find . -type f -name 'aws-exports*') @@ -854,7 +896,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run cleanup script command: | @@ -884,7 +928,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - run: name: Run cleanup script command: | @@ -913,8 +959,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -938,6 +985,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -969,8 +1017,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -994,6 +1043,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1026,8 +1076,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1051,6 +1102,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1082,8 +1134,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1107,6 +1160,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1138,8 +1192,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1163,6 +1218,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1194,8 +1250,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1219,6 +1276,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1250,8 +1308,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1275,6 +1334,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1306,8 +1366,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1331,6 +1392,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1362,8 +1424,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1387,6 +1450,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1418,8 +1482,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1443,6 +1508,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1474,8 +1540,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1499,6 +1566,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1530,8 +1598,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1555,6 +1624,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1587,8 +1657,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1612,6 +1683,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1643,8 +1715,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1668,6 +1741,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1699,8 +1773,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1724,6 +1799,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1756,8 +1832,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1781,6 +1858,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1812,8 +1890,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1837,6 +1916,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1868,8 +1948,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1893,6 +1974,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1924,8 +2006,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -1949,6 +2032,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -1980,8 +2064,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2005,6 +2090,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2036,8 +2122,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2061,6 +2148,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2092,8 +2180,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2117,6 +2206,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2148,8 +2238,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2173,6 +2264,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2204,8 +2296,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2229,6 +2322,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2260,8 +2354,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2285,6 +2380,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2316,8 +2412,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2341,6 +2438,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2372,8 +2470,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2397,6 +2496,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2428,8 +2528,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2453,6 +2554,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2484,8 +2586,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2509,6 +2612,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2540,8 +2644,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2565,6 +2670,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2596,8 +2702,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2621,6 +2728,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2652,8 +2760,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2677,6 +2786,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2708,8 +2818,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2733,6 +2844,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2764,8 +2876,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2789,6 +2902,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2820,8 +2934,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2845,6 +2960,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2876,8 +2992,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2901,6 +3018,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2932,8 +3050,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -2957,6 +3076,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -2988,8 +3108,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3013,6 +3134,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3044,8 +3166,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3069,6 +3192,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3100,8 +3224,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3125,6 +3250,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3156,8 +3282,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3181,6 +3308,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3213,8 +3341,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3238,6 +3367,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3269,8 +3399,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3294,6 +3425,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3325,8 +3457,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3350,6 +3483,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3381,8 +3515,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3406,6 +3541,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3437,8 +3573,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3462,6 +3599,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3482,6 +3620,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 + USE_PARENT_ACCOUNT: 1 auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3493,8 +3632,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3518,6 +3658,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3550,8 +3691,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3575,6 +3717,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3606,8 +3749,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3631,6 +3775,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3662,8 +3807,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3687,6 +3833,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3718,8 +3865,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3743,6 +3891,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3774,8 +3923,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3799,6 +3949,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3830,8 +3981,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3855,6 +4007,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3886,8 +4039,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3911,6 +4065,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3942,8 +4097,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -3967,6 +4123,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -3998,8 +4155,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4023,6 +4181,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4054,8 +4213,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4079,6 +4239,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4110,8 +4271,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4135,6 +4297,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4155,6 +4318,7 @@ jobs: environment: TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4166,8 +4330,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4191,6 +4356,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4211,6 +4377,7 @@ jobs: environment: TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4222,8 +4389,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4247,6 +4415,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4278,8 +4447,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4303,6 +4473,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4334,8 +4505,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4359,6 +4531,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4390,8 +4563,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4415,6 +4589,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4447,8 +4622,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4472,6 +4648,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4503,8 +4680,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4528,6 +4706,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4559,8 +4738,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4584,6 +4764,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4604,6 +4785,7 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 function_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4615,8 +4797,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4640,6 +4823,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4671,8 +4855,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4696,6 +4881,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4727,8 +4913,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4752,6 +4939,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4783,8 +4971,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4808,6 +4997,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4840,8 +5030,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4865,6 +5056,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4896,8 +5088,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4921,6 +5114,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -4952,8 +5146,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -4977,6 +5172,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5008,8 +5204,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5033,6 +5230,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5064,8 +5262,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5089,6 +5288,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5120,8 +5320,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5145,6 +5346,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5176,8 +5378,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5201,6 +5404,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5221,6 +5425,7 @@ jobs: environment: TEST_SUITE: src/__tests__/api_1.test.ts CLI_REGION: ap-southeast-2 + USE_PARENT_ACCOUNT: 1 schema-auth-5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5232,8 +5437,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5257,6 +5463,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5288,8 +5495,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5313,6 +5521,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5333,6 +5542,7 @@ jobs: environment: TEST_SUITE: src/__tests__/storage.test.ts CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 api_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5344,8 +5554,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5369,6 +5580,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5389,6 +5601,7 @@ jobs: environment: TEST_SUITE: src/__tests__/api_2.test.ts CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 schema-iterative-update-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5400,8 +5613,9 @@ jobs: - attach_workspace: at: ./ - restore_cache: - keys: - - amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: @@ -5425,6 +5639,7 @@ jobs: amplify-app --version startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml" setNpmRegistryUrlToLocal + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE unsetNpmRegistryUrl @@ -5455,6 +5670,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5486,6 +5707,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5518,6 +5745,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5549,6 +5782,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5580,6 +5819,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5611,6 +5856,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5642,6 +5893,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5673,6 +5930,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5704,6 +5967,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5735,6 +6004,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5766,6 +6041,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5797,6 +6078,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5829,6 +6116,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5860,6 +6153,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5891,6 +6190,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5923,6 +6228,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5954,6 +6265,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -5985,6 +6302,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6016,6 +6339,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6047,6 +6376,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6078,6 +6413,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6109,6 +6450,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6140,6 +6487,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6171,6 +6524,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6202,6 +6561,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6233,6 +6598,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6264,6 +6635,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6295,6 +6672,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6326,6 +6709,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6357,6 +6746,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6388,6 +6783,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6419,6 +6820,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6450,6 +6857,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6481,6 +6894,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6512,6 +6931,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6543,6 +6968,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6574,6 +7005,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6605,6 +7042,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6636,6 +7079,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6667,6 +7116,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6698,6 +7153,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6730,6 +7191,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6762,9 +7229,15 @@ jobs: - attach_workspace: at: ./ - restore_cache: - key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} - restore_cache: - key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} + - restore_cache: + key: amplify-build-artifact-{{ .Revision }}-{{ arch }} + - restore_cache: + key: amplify-pkg-binaries-{{ .Branch }}-{{ .Revision }} - install_yarn: os: << parameters.os >> - install_packaged_cli: @@ -6792,6 +7265,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6823,6 +7302,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6854,6 +7339,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6875,6 +7366,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 + USE_PARENT_ACCOUNT: 1 auth_3-amplify_e2e_tests_pkg_linux: parameters: os: @@ -6885,6 +7377,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6917,6 +7415,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6948,6 +7452,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -6979,6 +7489,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7010,6 +7526,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7041,6 +7563,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7072,6 +7600,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7103,6 +7637,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7134,6 +7674,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7165,6 +7711,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7196,6 +7748,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7227,6 +7785,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7248,6 +7812,7 @@ jobs: environment: TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 import_dynamodb_1-amplify_e2e_tests_pkg_linux: parameters: os: @@ -7258,6 +7823,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7279,6 +7850,7 @@ jobs: environment: TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: parameters: os: @@ -7289,6 +7861,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7320,6 +7898,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7351,6 +7935,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7383,6 +7973,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7415,6 +8011,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7446,6 +8048,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7477,6 +8085,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7498,6 +8112,7 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 function_1-amplify_e2e_tests_pkg_linux: parameters: os: @@ -7508,6 +8123,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7539,6 +8160,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7570,6 +8197,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7601,6 +8234,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7633,6 +8272,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7664,6 +8309,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7695,6 +8346,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7726,6 +8383,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7757,6 +8420,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7788,6 +8457,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7819,6 +8494,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7840,6 +8521,7 @@ jobs: environment: TEST_SUITE: src/__tests__/api_1.test.ts CLI_REGION: ap-southeast-2 + USE_PARENT_ACCOUNT: 1 schema-auth-5-amplify_e2e_tests_pkg_linux: parameters: os: @@ -7850,6 +8532,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7881,6 +8569,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7902,6 +8596,7 @@ jobs: environment: TEST_SUITE: src/__tests__/storage.test.ts CLI_REGION: us-west-2 + USE_PARENT_ACCOUNT: 1 api_2-amplify_e2e_tests_pkg_linux: parameters: os: @@ -7912,6 +8607,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -7933,6 +8634,7 @@ jobs: environment: TEST_SUITE: src/__tests__/api_2.test.ts CLI_REGION: eu-west-2 + USE_PARENT_ACCOUNT: 1 schema-iterative-update-4-amplify_e2e_tests_pkg_linux: parameters: os: @@ -7943,6 +8645,12 @@ jobs: steps: - attach_workspace: at: ./ + - restore_cache: + key: >- + amplify-cli-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}-{{ + arch }} + - restore_cache: + key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }} - restore_cache: key: amplify-build-artifact-{{ .Revision }}-{{ arch }} - restore_cache: @@ -8006,7 +8714,13 @@ workflows: - build build_test_deploy: jobs: - - build + - build: + matrix: + parameters: + os: + - linux + - windows + - build_img - test: requires: - build @@ -8070,60 +8784,166 @@ workflows: - /run-e2e\/*./ - done_with_node_e2e_tests: requires: + - api_4-amplify_e2e_tests + - function_7-amplify_e2e_tests + - schema-iterative-update-locking-amplify_e2e_tests + - notifications-amplify_e2e_tests + - analytics-amplify_e2e_tests + - geo-remove-amplify_e2e_tests + - schema-iterative-update-1-amplify_e2e_tests + - auth_4-amplify_e2e_tests - import_auth_2-amplify_e2e_tests - schema-auth-9-amplify_e2e_tests - schema-model-amplify_e2e_tests - schema-auth-5-amplify_e2e_tests + - auth_6-amplify_e2e_tests + - hooks-amplify_e2e_tests + - plugin-amplify_e2e_tests + - schema-versioned-amplify_e2e_tests + - interactions-amplify_e2e_tests + - feature-flags-amplify_e2e_tests + - schema-auth-3-amplify_e2e_tests + - schema-auth-7-amplify_e2e_tests - import_s3_1-amplify_e2e_tests - schema-auth-11-amplify_e2e_tests - migration-api-connection-migration-amplify_e2e_tests - storage-amplify_e2e_tests + - configure-project-amplify_e2e_tests + - iam-permissions-boundary-amplify_e2e_tests + - init-special-case-amplify_e2e_tests + - schema-data-access-patterns-amplify_e2e_tests + - schema-iterative-update-2-amplify_e2e_tests + - schema-auth-10-amplify_e2e_tests + - delete-amplify_e2e_tests + - schema-auth-8-amplify_e2e_tests - import_dynamodb_1-amplify_e2e_tests - migration-api-key-migration2-amplify_e2e_tests - schema-connection-amplify_e2e_tests - api_2-amplify_e2e_tests + - container-hosting-amplify_e2e_tests + - layer-2-amplify_e2e_tests + - datastore-modelgen-amplify_e2e_tests + - containers-api-amplify_e2e_tests + - schema-key-amplify_e2e_tests + - function_2-amplify_e2e_tests + - schema-searchable-amplify_e2e_tests - schema-iterative-rollback-1-amplify_e2e_tests - function_1-amplify_e2e_tests - schema-auth-6-amplify_e2e_tests - schema-iterative-update-4-amplify_e2e_tests + - frontend_config_drift-amplify_e2e_tests + - migration-node-function-amplify_e2e_tests + - amplify-configure-amplify_e2e_tests + - schema-predictions-amplify_e2e_tests + - predictions-amplify_e2e_tests + - auth_1-amplify_e2e_tests + - auth_3-amplify_e2e_tests - schema-auth-4-amplify_e2e_tests - schema-iterative-rollback-2-amplify_e2e_tests - schema-auth-1-amplify_e2e_tests - schema-iterative-update-3-amplify_e2e_tests + - function_5-amplify_e2e_tests + - pull-amplify_e2e_tests + - init-amplify_e2e_tests + - amplify-app-amplify_e2e_tests + - hostingPROD-amplify_e2e_tests + - geo-add-amplify_e2e_tests + - auth_5-amplify_e2e_tests + - layer-amplify_e2e_tests - api_3-amplify_e2e_tests - env-amplify_e2e_tests - function_4-amplify_e2e_tests - schema-auth-2-amplify_e2e_tests + - function_6-amplify_e2e_tests + - s3-sse-amplify_e2e_tests + - tags-amplify_e2e_tests + - hosting-amplify_e2e_tests + - geo-update-amplify_e2e_tests + - function_3-amplify_e2e_tests + - migration-api-key-migration1-amplify_e2e_tests - import_auth_1-amplify_e2e_tests - auth_2-amplify_e2e_tests - schema-function-amplify_e2e_tests - api_1-amplify_e2e_tests - done_with_pkg_linux_e2e_tests: requires: + - api_4-amplify_e2e_tests_pkg_linux + - function_7-amplify_e2e_tests_pkg_linux + - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux + - notifications-amplify_e2e_tests_pkg_linux + - analytics-amplify_e2e_tests_pkg_linux + - geo-remove-amplify_e2e_tests_pkg_linux + - schema-iterative-update-1-amplify_e2e_tests_pkg_linux + - auth_4-amplify_e2e_tests_pkg_linux - import_auth_2-amplify_e2e_tests_pkg_linux - schema-auth-9-amplify_e2e_tests_pkg_linux - schema-model-amplify_e2e_tests_pkg_linux - schema-auth-5-amplify_e2e_tests_pkg_linux + - auth_6-amplify_e2e_tests_pkg_linux + - hooks-amplify_e2e_tests_pkg_linux + - plugin-amplify_e2e_tests_pkg_linux + - schema-versioned-amplify_e2e_tests_pkg_linux + - interactions-amplify_e2e_tests_pkg_linux + - feature-flags-amplify_e2e_tests_pkg_linux + - schema-auth-3-amplify_e2e_tests_pkg_linux + - schema-auth-7-amplify_e2e_tests_pkg_linux - import_s3_1-amplify_e2e_tests_pkg_linux - schema-auth-11-amplify_e2e_tests_pkg_linux - migration-api-connection-migration-amplify_e2e_tests_pkg_linux - storage-amplify_e2e_tests_pkg_linux + - configure-project-amplify_e2e_tests_pkg_linux + - iam-permissions-boundary-amplify_e2e_tests_pkg_linux + - init-special-case-amplify_e2e_tests_pkg_linux + - schema-data-access-patterns-amplify_e2e_tests_pkg_linux + - schema-iterative-update-2-amplify_e2e_tests_pkg_linux + - schema-auth-10-amplify_e2e_tests_pkg_linux + - delete-amplify_e2e_tests_pkg_linux + - schema-auth-8-amplify_e2e_tests_pkg_linux - import_dynamodb_1-amplify_e2e_tests_pkg_linux - migration-api-key-migration2-amplify_e2e_tests_pkg_linux - schema-connection-amplify_e2e_tests_pkg_linux - api_2-amplify_e2e_tests_pkg_linux + - container-hosting-amplify_e2e_tests_pkg_linux + - layer-2-amplify_e2e_tests_pkg_linux + - datastore-modelgen-amplify_e2e_tests_pkg_linux + - containers-api-amplify_e2e_tests_pkg_linux + - schema-key-amplify_e2e_tests_pkg_linux + - function_2-amplify_e2e_tests_pkg_linux + - schema-searchable-amplify_e2e_tests_pkg_linux - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux - function_1-amplify_e2e_tests_pkg_linux - schema-auth-6-amplify_e2e_tests_pkg_linux - schema-iterative-update-4-amplify_e2e_tests_pkg_linux + - frontend_config_drift-amplify_e2e_tests_pkg_linux + - migration-node-function-amplify_e2e_tests_pkg_linux + - amplify-configure-amplify_e2e_tests_pkg_linux + - schema-predictions-amplify_e2e_tests_pkg_linux + - predictions-amplify_e2e_tests_pkg_linux + - auth_1-amplify_e2e_tests_pkg_linux + - auth_3-amplify_e2e_tests_pkg_linux - schema-auth-4-amplify_e2e_tests_pkg_linux - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux - schema-auth-1-amplify_e2e_tests_pkg_linux - schema-iterative-update-3-amplify_e2e_tests_pkg_linux + - function_5-amplify_e2e_tests_pkg_linux + - pull-amplify_e2e_tests_pkg_linux + - init-amplify_e2e_tests_pkg_linux + - amplify-app-amplify_e2e_tests_pkg_linux + - hostingPROD-amplify_e2e_tests_pkg_linux + - geo-add-amplify_e2e_tests_pkg_linux + - auth_5-amplify_e2e_tests_pkg_linux + - layer-amplify_e2e_tests_pkg_linux - api_3-amplify_e2e_tests_pkg_linux - env-amplify_e2e_tests_pkg_linux - function_4-amplify_e2e_tests_pkg_linux - schema-auth-2-amplify_e2e_tests_pkg_linux + - function_6-amplify_e2e_tests_pkg_linux + - s3-sse-amplify_e2e_tests_pkg_linux + - tags-amplify_e2e_tests_pkg_linux + - hosting-amplify_e2e_tests_pkg_linux + - geo-update-amplify_e2e_tests_pkg_linux + - function_3-amplify_e2e_tests_pkg_linux + - migration-api-key-migration1-amplify_e2e_tests_pkg_linux - import_auth_1-amplify_e2e_tests_pkg_linux - auth_2-amplify_e2e_tests_pkg_linux - schema-function-amplify_e2e_tests_pkg_linux @@ -8143,6 +8963,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_v4: context: - amplify-ecr-image-pull @@ -8158,6 +8979,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_v4_30_0: context: - amplify-ecr-image-pull @@ -8173,6 +8995,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_non_multi_env_layers: context: - amplify-ecr-image-pull @@ -8188,6 +9011,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_migration_tests_multi_env_layers: context: - amplify-ecr-image-pull @@ -8203,6 +9027,7 @@ workflows: - /run-e2e\/*./ requires: - build + - build_pkg_binaries - amplify_console_integration_tests: context: - amplify-ecr-image-pull @@ -8308,6 +9133,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8335,6 +9161,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8362,6 +9189,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8389,6 +9217,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8415,7 +9244,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - api_4-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8442,7 +9272,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_7-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8469,7 +9300,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-iterative-update-locking-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8496,7 +9328,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - notifications-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8523,7 +9356,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - analytics-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8550,7 +9384,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-remove-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8577,7 +9412,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-iterative-update-1-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8604,7 +9440,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_4-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8632,6 +9469,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8659,6 +9497,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8686,6 +9525,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8713,6 +9553,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8739,7 +9580,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_6-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8766,7 +9608,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hooks-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8793,7 +9636,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - plugin-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8820,7 +9664,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-versioned-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8847,7 +9692,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - interactions-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8874,7 +9720,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - feature-flags-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8901,7 +9748,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-3-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8928,7 +9776,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-7-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8956,6 +9805,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -8983,6 +9833,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9010,6 +9861,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9037,6 +9889,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9063,7 +9916,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - configure-project-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9090,7 +9944,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - iam-permissions-boundary-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9117,7 +9972,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - init-special-case-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9144,7 +10000,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-data-access-patterns-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9171,7 +10028,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-iterative-update-2-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9198,7 +10056,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-10-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9225,7 +10084,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - delete-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9248,10 +10108,12 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-8-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9279,6 +10141,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9306,6 +10169,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9333,6 +10197,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9360,6 +10225,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9386,7 +10252,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - container-hosting-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9413,7 +10280,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - layer-2-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9440,7 +10308,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - datastore-modelgen-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9467,7 +10336,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - containers-api-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9494,7 +10364,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-key-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9521,7 +10392,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_2-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9544,10 +10416,12 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-searchable-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9575,6 +10449,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9602,6 +10477,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9629,6 +10505,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9656,6 +10533,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9682,7 +10560,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - frontend_config_drift-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9709,7 +10588,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - migration-node-function-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9736,7 +10616,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - amplify-configure-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9763,7 +10644,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-predictions-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9790,7 +10672,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - predictions-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9817,7 +10700,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_1-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9844,7 +10728,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_3-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9872,6 +10757,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9899,6 +10785,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9926,6 +10813,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9953,6 +10841,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -9979,7 +10868,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_5-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10006,7 +10896,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - pull-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10033,7 +10924,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - init-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10060,7 +10952,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - amplify-app-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10087,7 +10980,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hostingPROD-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10114,7 +11008,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-add-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10141,7 +11036,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_5-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10164,10 +11060,12 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - layer-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10195,6 +11093,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10222,6 +11121,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10249,6 +11149,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10276,6 +11177,7 @@ workflows: - /run-e2e\/*./ requires: - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10302,7 +11204,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_6-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10329,7 +11232,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - s3-sse-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10356,7 +11260,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - tags-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10383,7 +11288,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hosting-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10410,7 +11316,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-update-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10437,7 +11344,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_3-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10464,7 +11372,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - migration-api-key-migration1-amplify_e2e_tests + - publish_to_local_registry + - build_pkg_binaries matrix: parameters: os: @@ -10564,7 +11473,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - api_4-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10584,7 +11494,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_7-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10604,7 +11515,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10623,7 +11535,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - notifications-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10643,7 +11556,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - analytics-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10662,7 +11576,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-remove-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10681,7 +11596,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-iterative-update-1-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10700,7 +11616,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_4-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10803,7 +11720,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_6-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10823,12 +11741,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hooks-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows - schema-auth-3-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -10843,7 +11761,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - plugin-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10862,7 +11781,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-versioned-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10881,7 +11801,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - interactions-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10900,7 +11821,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - feature-flags-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10919,7 +11841,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-3-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -10938,7 +11861,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-7-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11040,7 +11964,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - configure-project-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11059,7 +11984,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - iam-permissions-boundary-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11078,12 +12004,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - init-special-case-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows - schema-auth-8-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11098,7 +12024,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-data-access-patterns-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11117,7 +12044,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-iterative-update-2-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11136,7 +12064,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-10-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11155,7 +12084,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - delete-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11171,10 +12101,12 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-auth-8-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11275,12 +12207,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - container-hosting-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows - function_2-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11295,12 +12227,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - layer-2-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows - schema-searchable-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11315,7 +12247,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - datastore-modelgen-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11335,7 +12268,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - containers-api-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11354,12 +12288,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-key-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows - schema-auth-6-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11374,7 +12308,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_2-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11389,10 +12324,12 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-searchable-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11494,12 +12431,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - frontend_config_drift-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows - auth_1-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11514,7 +12451,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - migration-node-function-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11533,7 +12471,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - amplify-configure-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11552,7 +12491,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - schema-predictions-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11571,7 +12511,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - predictions-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11590,7 +12531,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_1-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11609,7 +12551,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_3-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11634,7 +12577,6 @@ workflows: parameters: os: - linux - - windows - pull-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11655,7 +12597,6 @@ workflows: parameters: os: - linux - - windows - init-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11711,7 +12652,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_5-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11730,7 +12672,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - pull-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11750,7 +12693,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - init-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11770,7 +12714,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - amplify-app-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11789,12 +12734,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hostingPROD-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows - env-amplify_e2e_tests_pkg_linux: context: - amplify-ecr-image-pull @@ -11809,7 +12754,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-add-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11828,7 +12774,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - auth_5-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11843,10 +12790,12 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - layer-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11947,7 +12896,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_6-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11967,7 +12917,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - s3-sse-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -11986,7 +12937,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - tags-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -12005,7 +12957,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - hosting-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -12024,7 +12977,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - geo-update-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -12043,7 +12997,8 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - function_3-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: @@ -12062,12 +13017,12 @@ workflows: - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - migration-api-key-migration1-amplify_e2e_tests_pkg_linux + - done_with_node_e2e_tests + - build_pkg_binaries matrix: parameters: os: - linux - - windows commands: install_packaged_cli: description: Install Amplify Packaged CLI to PATH @@ -12085,22 +13040,22 @@ commands: shell: powershell.exe working_directory: ~/repo environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - << parameters.os >> steps: - run: name: Rename the Packaged CLI to amplify command: | # rename the command to amplify - cd $env:homedrive\$env:homepath\repo\out - mv amplify-pkg-win.exe amplify.exe + cd /home/circleci/repo/out + cp amplify-pkg-win.exe amplify.exe - run: name: Move to CLI Binary to already existing PATH command: > # This is a Hack to make sure the Amplify CLI is in the PATH - cp $env:homedrive\$env:homepath\repo\out\amplify.exe + cp /home/circleci/repo/out/amplify.exe $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps - run: name: Confirm Amplify CLI is installed and available in PATH @@ -12154,15 +13109,17 @@ commands: shell: powershell.exe working_directory: ~/repo environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - << parameters.os >> steps: - run: nvm install 12.22.5 - run: nvm use 12.22.5 - run: npm install -g yarn - - run: yarn dev-build - - run: yarn pkg-all + - run: yarn --cache-folder ~/.cache/yarn + - run: >- + cp /home/circleci/repo/out/amplify-pkg-win.exe + $env:homedrive\$env:homepath\AppData\Local\Microsoft\WindowsApps\amplify.exe install_java: description: Install Java on Linux and Docker images parameters: @@ -12213,17 +13170,21 @@ commands: shell: powershell.exe working_directory: ~/repo environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - << parameters.os >> steps: + - run: + name: Install aws cli + command: msiexec.exe /i https://awscli.amazonaws.com/AWSCLIV2.msi - run: name: Run E2E tests - command: > + shell: bash.exe + command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/amplify-e2e-tests - - yarn run e2e --detectOpenHandles --maxWorkers=3 - $ENV:TEST_SUITE + yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m - when: condition: @@ -12248,11 +13209,18 @@ commands: resource_class: large - << parameters.os >> steps: + - run: + name: Shuffle AWS Credentials + command: | + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials - run: name: Run E2E tests command: | source $BASH_ENV amplify version + source .circleci/local_publish_helpers.sh + setAwsAccountCredentials cd packages/amplify-e2e-tests yarn run e2e --detectOpenHandles --maxWorkers=3 $TEST_SUITE no_output_timeout: 90m @@ -12272,8 +13240,8 @@ commands: shell: powershell.exe working_directory: ~/repo environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - << parameters.os >> steps: - run: @@ -12334,8 +13302,8 @@ commands: shell: powershell.exe working_directory: ~/repo environment: - AMPLIFY_DIR: /home/circleci/repo/out - AMPLIFY_PATH: /home/circleci/repo/out/amplify.exe + AMPLIFY_DIR: C:/home/circleci/repo/out + AMPLIFY_PATH: C:/home/circleci/repo/out/amplify.exe - << parameters.os >> steps: - run: diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 583c650a52b..038601506ce 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -5,7 +5,7 @@ default_verdaccio_package=verdaccio@5.1.2 function startLocalRegistry { # Start local registry - tmp_registry_log=`mktemp` + tmp_registry_log=$(mktemp) echo "Registry output file: $tmp_registry_log" (cd && nohup npx ${VERDACCIO_PACKAGE:-$default_verdaccio_package} -c $1 &>$tmp_registry_log &) # Wait for Verdaccio to boot @@ -52,3 +52,48 @@ function setSudoNpmRegistryUrlToLocal { sudo npm set registry "$custom_registry_url" sudo yarn config set registry "$custom_registry_url" } + +function setAwsAccountCredentials { + if [[ "$OSTYPE" == "win32" ]]; then + # windows, do nothing + echo "Using parent account credentials for OSTYPE $OSTYPE" + elif [[ "$OSTYPE" == "cygwin" ]]; then + # windows, do nothing + echo "Using parent account credentials for OSTYPE $OSTYPE" + elif [[ "$OSTYPE" == "msys" ]]; then + # windows, do nothing + if [ -z "$USE_PARENT_ACCOUNT" ]; then + export AWS_PAGER="" + export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) + if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then + echo "Unable to assume child account role. Falling back to parent AWS account" + else + echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" + export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") + export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") + export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") + fi + else + echo "Using parent account credentials." + fi + else + echo "OSTYPE is $OSTYPE" + if [ -z "$USE_PARENT_ACCOUNT" ]; then + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -o awscliv2.zip >/dev/null + export PATH=$PATH:$(pwd)/aws/dist + export AWS_PAGER="" + export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) + if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then + echo "Unable to assume child account role. Falling back to parent AWS account" + else + echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" + export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") + export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") + export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") + fi + else + echo "Using parent account credentials." + fi + fi +} diff --git a/package.json b/package.json index e8b1a70f954..01296737883 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "clean": "lerna run clean && lerna exec yarn rimraf tsconfig.tsbuildinfo && lerna clean --yes && yarn rimraf node_modules", "build": "lerna run build", "build-tests": "lerna run build-tests", - "production-build": "yarn --frozen-lockfile && lerna run build --concurrency 3 --stream", - "dev-build": "yarn && lerna run build", + "production-build": "yarn --frozen-lockfile --cache-folder ~/.cache/yarn && lerna run build --concurrency 3 --stream", + "dev-build": "yarn --cache-folder ~/.cache/yarn && lerna run build", "link-aa-dev": "cd packages/amplify-app && ln -s \"$(pwd)/bin/amplify-app\" \"$(yarn global bin)/amplify-app-dev\" && cd -", "rm-aa-dev-link": "rm -f \"$(yarn global bin)/amplify-app-dev\"", "link-dev": "cd packages/amplify-cli && ln -s \"$(pwd)/bin/amplify\" \"$(yarn global bin)/amplify-dev\" && cd -", diff --git a/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts b/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts index 3459bd1b1c8..337737afe04 100644 --- a/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts +++ b/packages/amplify-console-integration-tests/src/consoleHosting/consoleHosting.ts @@ -1,19 +1,20 @@ import { addCircleCITags, nspawn as spawn } from 'amplify-e2e-core'; import { getCLIPath } from '../util'; import { HOSTING_NOT_ENABLED, HOSTING_ENABLED_IN_CONSOLE, ORIGINAL_ENV } from './constants'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: ORIGINAL_ENV, - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, }; export function deleteProject(cwd: string, deleteDeploymentBucket: Boolean = true): Promise { @@ -21,7 +22,7 @@ export function deleteProject(cwd: string, deleteDeploymentBucket: Boolean = tru const noOutputTimeout = 10 * 60 * 1000; // 10 minutes spawn(getCLIPath(), ['delete'], { cwd, stripColors: true, noOutputTimeout }) .wait('Are you sure you want to continue?') - .sendLine('y') + .sendConfirmYes() .sendCarriageReturn() .wait('Project deleted locally.') .run((err: Error) => { @@ -54,9 +55,9 @@ export function addManualHosting(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['add', 'hosting'], { cwd, stripColors: true }) .wait(/.*Hosting with Amplify Console*/) - .sendLine('\r') + .sendCarriageReturn() .wait('Manual deployment') - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -71,13 +72,13 @@ export function addCICDHostingWithoutFrontend(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['add', 'hosting'], { cwd, stripColors: true }) .wait(/.*Hosting with Amplify Console*/) - .sendLine('\r') + .sendCarriageReturn() .wait('Continuous deployment (Git-based deployments)') //move up .send('k') - .sendLine('\r') + .sendCarriageReturn() .wait(/.*Continuous deployment is configured in the Amplify Console.*/) - .sendLine('\r') + .sendCarriageReturn() .wait("No hosting URL found. Run 'amplify add hosting' again to set up hosting with Amplify Console.") .run((err: Error) => { if (!err) { @@ -93,7 +94,7 @@ export function amplifyPublish(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['publish'], { cwd, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -108,7 +109,7 @@ export function amplifyConfigure(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['hosting', 'configure'], { cwd, stripColors: true }) .wait(/.*We recommends you open AWS Amplify Console*/) - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -123,7 +124,7 @@ export function amplifyServe(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['hosting', 'configure'], { cwd, stripColors: true }) .wait(/.*You have set up Manual deployment*/) - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -139,7 +140,7 @@ export function amplifyStatus(cwd: string, expectedStatus: string): Promise { if (!err) { resolve(); @@ -154,7 +155,7 @@ export function amplifyPush(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['push'], { cwd, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -169,7 +170,7 @@ export function removeHosting(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['remove', 'hosting'], { cwd, stripColors: true }) .wait(/.*Are you sure you want to delete the resource*/) - .sendLine('\r') + .sendCarriageReturn() .wait('Successfully removed resource') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts b/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts index c6e30cf855b..13905eef512 100644 --- a/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts +++ b/packages/amplify-console-integration-tests/src/pullAndInit/deleteProject.ts @@ -5,7 +5,7 @@ export function headlessDelete(projectRootDirPath: string): Promise { return new Promise((resolve, reject) => { spawn(util.getCLIPath(), ['delete'], { cwd: projectRootDirPath, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('y') + .sendConfirmYes() .wait('Project deleted locally.') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts b/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts index 52f7234cd09..0e3082f6f92 100644 --- a/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts +++ b/packages/amplify-console-integration-tests/src/pullAndInit/pullProject.ts @@ -1,17 +1,18 @@ import * as util from '../util'; import { nspawn as spawn, getSocialProviders } from 'amplify-e2e-core'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + name: EOL, + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, }; export type FrontendConfig = { @@ -84,7 +85,7 @@ export function authConfigPull( .wait('Start Command:') .sendLine(s.startCmd) .wait('Do you plan on modifying this backend?') - .sendLine('y') + .sendConfirmYes() .wait('Successfully pulled backend environment dev from the cloud.') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/asciinema-recorder.ts b/packages/amplify-e2e-core/src/asciinema-recorder.ts index 7901f5bbbc4..49b8a908058 100644 --- a/packages/amplify-e2e-core/src/asciinema-recorder.ts +++ b/packages/amplify-e2e-core/src/asciinema-recorder.ts @@ -58,6 +58,7 @@ export class Recorder { cols: this.cols, rows: this.rows, cwd: this.cwd, + useConpty: false, ...this.options, }); this.addFrame(this.renderPrompt(this.cwd, this.cmd, this.args)); diff --git a/packages/amplify-e2e-core/src/categories/analytics.ts b/packages/amplify-e2e-core/src/categories/analytics.ts index c425e4054a1..f5811eb32e9 100644 --- a/packages/amplify-e2e-core/src/categories/analytics.ts +++ b/packages/amplify-e2e-core/src/categories/analytics.ts @@ -12,7 +12,7 @@ export function addPinpoint(cwd: string, settings: any): Promise { .delay(1000) // Some delay required for autocomplete and terminal to catch up .sendLine(settings.rightName) .wait('Apps need authorization to send analytics events. Do you want to allow guests') - .sendLine('n') + .sendConfirmNo() .wait(`Successfully added resource ${settings.rightName} locally`) .sendEof() .run((err: Error) => { @@ -40,7 +40,7 @@ export function addKinesis(cwd: string, settings: any): Promise { .wait('Enter number of shards') .sendCarriageReturn() .wait('Apps need authorization to send analytics events. Do you want to allow guests') - .sendLine('n') + .sendConfirmNo() .wait(`Successfully added resource ${settings.rightName} locally`) .sendEof() .run((err: Error) => { diff --git a/packages/amplify-e2e-core/src/categories/api.ts b/packages/amplify-e2e-core/src/categories/api.ts index 571e91efc48..25cd5cfd99f 100644 --- a/packages/amplify-e2e-core/src/categories/api.ts +++ b/packages/amplify-e2e-core/src/categories/api.ts @@ -3,6 +3,7 @@ import * as fs from 'fs-extra'; import { selectRuntime, selectTemplate } from './lambda-function'; import { singleSelect, multiSelect } from '../utils/selectors'; import _ from 'lodash'; +import { EOL } from 'os'; export function getSchemaPath(schemaName: string): string { return `${__dirname}/../../../amplify-e2e-tests/schemas/${schemaName}`; @@ -27,7 +28,7 @@ interface AddApiOptions { } const defaultOptions: AddApiOptions = { - apiName: '\r', + apiName: EOL, }; export function addApiWithoutSchema(cwd: string, opts: Partial = {}) { @@ -47,11 +48,11 @@ export function addApiWithoutSchema(cwd: string, opts: Partial = .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendCarriageReturn() .wait('Do you have an annotated GraphQL schema?') - .sendLine('n') + .sendConfirmNo() .wait('Choose a schema template:') .sendCarriageReturn() .wait('Do you want to edit the schema now?') - .sendLine('n') + .sendConfirmNo() .wait( '"amplify publish" will build all your local backend and frontend resources (if you have hosting category added) and provision it in the cloud', ) @@ -83,7 +84,7 @@ export function addApiWithSchema(cwd: string, schemaFile: string, opts: Partial< .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendCarriageReturn() .wait('Do you have an annotated GraphQL schema?') - .sendLine('y') + .sendConfirmYes() .wait('Provide your schema file path:') .sendLine(schemaPath) .wait( @@ -116,13 +117,13 @@ export function addApiWithSchemaAndConflictDetection(cwd: string, schemaFile: st .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Configure additional auth types.*/) - .sendLine('n') + .sendConfirmNo() .wait(/.*Enable conflict detection.*/) - .sendLine('y') + .sendConfirmYes() .wait(/.*Select the default resolution strategy.*/) .sendCarriageReturn() .wait(/.*Do you have an annotated GraphQL schema.*/) - .sendLine('y') + .sendConfirmYes() .wait('Provide your schema file path:') .sendLine(schemaPath) .wait( @@ -163,9 +164,9 @@ export function updateApiWithMultiAuth(cwd: string, settings: any) { .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Configure additional auth types.*/) - .sendLine('y') + .sendConfirmYes() .wait(/.*Choose the additional authorization types you want to configure for the API.*/) - .sendLine('a\r') // All items + .sendLine('a') // All items // Cognito .wait(/.*Do you want to use the default authentication and security configuration.*/) .sendCarriageReturn() @@ -185,7 +186,7 @@ export function updateApiWithMultiAuth(cwd: string, settings: any) { .wait(/.*Enter the number of milliseconds a token is valid after being authenticated.*/) .sendLine('2000') .wait('Enable conflict detection?') - .sendLine('n') + .sendConfirmNo() .wait(/.*Successfully updated resource.*/) .sendEof() .run((err: Error) => { @@ -234,13 +235,13 @@ export function updateAPIWithResolutionStrategy(cwd: string, settings: any) { .wait(/.*Do you want to configure advanced settings for the GraphQL API.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Configure additional auth types.*/) - .sendLine('n') + .sendConfirmNo() .wait(/.*Enable conflict detection.*/) - .sendLine('y') + .sendConfirmYes() .wait(/.*Select the default resolution strategy.*/) .sendLine(KEY_DOWN_ARROW) // Down .wait(/.*Do you want to override default per model settings.*/) - .sendLine('n') + .sendConfirmNo() .wait(/.*Successfully updated resource.*/) .sendEof() .run((err: Error) => { @@ -334,9 +335,9 @@ export function addRestApi(cwd: string, settings: any) { chain .wait('Do you want to configure advanced settings?') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to edit the local lambda function now') - .sendLine('n'); + .sendConfirmNo(); } chain.wait('Restrict API access'); @@ -364,7 +365,7 @@ export function addRestApi(cwd: string, settings: any) { chain .wait('Do you want to add another path') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -403,7 +404,7 @@ export function addApi(projectDir: string, settings?: any) { .send(KEY_DOWN_ARROW) //yes .sendCarriageReturn() .wait('Configure additional auth types?') - .sendLine('y'); + .sendConfirmYes(); authTypesToSelectFrom = authTypesToSelectFrom.filter(x => x !== defaultType); @@ -430,11 +431,11 @@ export function addApi(projectDir: string, settings?: any) { chain .wait('Do you have an annotated GraphQL schema?') - .sendLine('n') + .sendConfirmNo() .wait('Choose a schema template:') .sendCarriageReturn() .wait('Do you want to edit the schema now?') - .sendLine('n') + .sendConfirmNo() .wait('"amplify publish" will build all your local backend and frontend resources') .run((err: Error) => { if (!err) { @@ -520,11 +521,11 @@ export function addApiWithCognitoUserPoolAuthTypeWhenAuthExists(projectDir: stri .wait('Do you want to configure advanced settings for the GraphQL AP') .sendCarriageReturn() .wait('Do you have an annotated GraphQL schema?') - .sendLine('n') + .sendConfirmNo() .wait('Choose a schema template:') .sendCarriageReturn() .wait('Do you want to edit the schema now?') - .sendLine('n') + .sendConfirmNo() .wait('"amplify publish" will build all your local backend and frontend resources') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/categories/auth.ts b/packages/amplify-e2e-core/src/categories/auth.ts index de06efcae62..fa71b669b0b 100644 --- a/packages/amplify-e2e-core/src/categories/auth.ts +++ b/packages/amplify-e2e-core/src/categories/auth.ts @@ -75,7 +75,7 @@ export function removeAuthWithDefault(cwd: string): Promise { .wait('Choose the resource you would want to remove') .sendCarriageReturn() .wait('Are you sure you want to delete the resource? This') - .sendLine('y') + .sendConfirmYes() .sendEof() .run((err: Error) => { if (!err) { @@ -885,7 +885,7 @@ export function addAuthWithGroupsAndAdminAPI(cwd: string, settings: any): Promis .wait('Provide a name for your user pool group') .sendLine('Admins') .wait('Do you want to add another User Pool Group') - .sendLine('y') + .sendConfirmYes() .wait('Provide a name for your user pool group') .sendLine('Users') .wait('Do you want to add another User Pool Group') @@ -895,7 +895,7 @@ export function addAuthWithGroupsAndAdminAPI(cwd: string, settings: any): Promis .wait('Do you want to add an admin queries API') .sendCarriageReturn() // Yes .wait('Do you want to restrict access to the admin queries API') - .sendLine('y') + .sendConfirmYes() .wait('Select the group to restrict access with') .sendCarriageReturn() // Admins .wait('Multifactor authentication (MFA) user login options') @@ -1017,7 +1017,7 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise .wait('Please specify an email verification message') .sendCarriageReturn() .wait('Do you want to override the default password policy') - .sendLine('y') + .sendConfirmYes() .wait('Enter the minimum password length for this User Pool') .sendCarriageReturn() .wait('Select the password character requirements for your userpool') @@ -1028,7 +1028,7 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise .wait('Specify the app') .sendCarriageReturn() .wait('Do you want to specify the user attributes this app') - .sendLine('y') + .sendConfirmYes() .wait('Specify read attributes') .sendCarriageReturn() .wait('Specify write attributes') @@ -1075,7 +1075,7 @@ export function addAuthWithMaxOptions(cwd: string, settings: any): Promise .wait('Enter your Private Key for your OAuth flow') .sendLine(APPLE_PRIVATE_KEY) .wait('Do you want to configure Lambda Triggers for Cognito') - .sendLine('y') + .sendConfirmYes() .wait('Which triggers do you want to enable for Cognito') .send('a') .send(' ') @@ -1179,7 +1179,7 @@ export function updateAuthAddUserGroups(projectDir: string, groupNames: string[] while (index < groupNames.length) { chain .wait('Do you want to add another User Pool Group') - .sendLine('y') + .sendConfirmYes() .wait('Provide a name for your user pool group') .send(groupNames[index++]); } diff --git a/packages/amplify-e2e-core/src/categories/interactions.ts b/packages/amplify-e2e-core/src/categories/interactions.ts index f36b98bfe6a..d6327b7d751 100644 --- a/packages/amplify-e2e-core/src/categories/interactions.ts +++ b/packages/amplify-e2e-core/src/categories/interactions.ts @@ -10,7 +10,7 @@ export function addSampleInteraction(cwd: string, settings: any): Promise .wait('Choose a sample chatbot:') .sendCarriageReturn() .wait("Please indicate if your use of this bot is subject to the Children's") - .sendLine('y') + .sendConfirmYes() .sendEof() .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/categories/predictions.ts b/packages/amplify-e2e-core/src/categories/predictions.ts index 4c0ba985849..d8ff446167e 100644 --- a/packages/amplify-e2e-core/src/categories/predictions.ts +++ b/packages/amplify-e2e-core/src/categories/predictions.ts @@ -6,7 +6,7 @@ export function addConvert(cwd: string, settings: any): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['predictions', 'add'], { cwd, stripColors: true }) .wait('Please select from one of the categories below') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('What would you like to convert?') .sendCarriageReturn() @@ -17,7 +17,7 @@ export function addConvert(cwd: string, settings: any): Promise { .wait('What is the target language?') .sendCarriageReturn() .wait('Who should have access?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .sendEof() .run((err: Error) => { @@ -38,12 +38,12 @@ export function addIdentifyCollection(cwd: string, settings: any): Promise .wait('Please select from one of the categories below') .sendCarriageReturn() .wait('What would you like to identify?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Provide a friendly name for your resource') .sendLine(`${resourceName}\r`) .wait('Would you like use the default configuration?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Would you like to enable celebrity detection?') .sendLine('y') @@ -54,7 +54,8 @@ export function addIdentifyCollection(cwd: string, settings: any): Promise .wait('Would you like to allow users to add images to this collection?') .sendLine('y') .wait('Who should have access?') - .sendLine(KEY_DOWN_ARROW) + .send(KEY_DOWN_ARROW) + .sendCarriageReturn() .wait('The CLI would be provisioning an S3 bucket') .sendCarriageReturn() .sendEof() @@ -74,7 +75,9 @@ export function addInterpret(cwd: string, settings: any): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['add', 'predictions'], { cwd, stripColors: true }) .wait('Please select from one of the categories below') - .sendLine(`${KEY_DOWN_ARROW}${KEY_DOWN_ARROW}`) + .send(`${KEY_DOWN_ARROW}`) + .send(`${KEY_DOWN_ARROW}`) + .sendCarriageReturn() .wait('What would you like to interpret?') .sendCarriageReturn() .wait('Provide a friendly name for your resource') @@ -82,8 +85,8 @@ export function addInterpret(cwd: string, settings: any): Promise { .wait('What kind of interpretation would you like?') .sendLine('k') .wait('Who should have access?') - .sendLine(KEY_DOWN_ARROW) - .sendEof() + .send(KEY_DOWN_ARROW) + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); @@ -92,4 +95,4 @@ export function addInterpret(cwd: string, settings: any): Promise { } }); }); -} +} \ No newline at end of file diff --git a/packages/amplify-e2e-core/src/categories/storage.ts b/packages/amplify-e2e-core/src/categories/storage.ts index a5f111caf4b..007ed3d763b 100644 --- a/packages/amplify-e2e-core/src/categories/storage.ts +++ b/packages/amplify-e2e-core/src/categories/storage.ts @@ -26,15 +26,15 @@ export function addSimpleDDB(cwd: string, settings: any): Promise { .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Please choose partition key for the table') .sendCarriageReturn() .wait('Do you want to add a sort key to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -66,19 +66,19 @@ export function addDDBWithTrigger(cwd: string, settings: { ddbResourceName?: str .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Please choose partition key for the table') .sendCarriageReturn() .wait('Do you want to add a sort key to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .sendLine(KEY_DOWN_ARROW) .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -98,17 +98,17 @@ export function updateDDBWithTrigger(cwd: string, settings: any): Promise .wait('Specify the resource that you would want to update') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .sendLine(KEY_DOWN_ARROW) .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .wait('overwrite') - .sendLine('y') + .sendConfirmYes() .sendEof() .run((err: Error) => { if (!err) { @@ -129,15 +129,15 @@ export function updateSimpleDDBwithGSI(cwd: string, settings: any): Promise { if (!err) { @@ -180,30 +180,30 @@ export function addSimpleDDBwithGSI(cwd: string, settings: any): Promise { .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('y') + .sendConfirmYes() .wait('What would you like to name this column') .sendLine('gsi-col1') .wait('Please choose the data type') .sendCarriageReturn() .wait('Would you like to add another column') - .sendLine('n') + .sendConfirmNo() .wait('Please choose partition key for the table') .sendCarriageReturn() .wait('Do you want to add a sort key to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add global secondary indexes to your table?') - .sendLine('y') + .sendConfirmYes() .wait('Please provide the GSI name') .sendLine('gsi1') .wait('Please choose partition key for the GSI') .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Do you want to add a sort key to your global secondary index?') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add more global secondary indexes to your table') - .sendLine('n') + .sendConfirmNo() .wait('Do you want to add a Lambda Trigger for your Table') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -229,7 +229,7 @@ export function addS3(cwd: string, settings: any): Promise { .wait('What kind of access do you want') .sendLine(' ') .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -248,7 +248,7 @@ export function addS3AndAuthWithAuthOnlyAccess(cwd: string, settings: any): Prom .wait('Please select from one of the below mentioned services') .sendCarriageReturn() // Content .wait('You need to add auth (Amazon Cognito) to your project in order to add storage') - .sendLine('y') + .sendConfirmYes() .wait('Do you want to use the default authentication and security configuration') .sendCarriageReturn() // Default config .wait('How do you want users to be able to sign in') @@ -265,7 +265,7 @@ export function addS3AndAuthWithAuthOnlyAccess(cwd: string, settings: any): Prom .send('i') // Select all .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -297,7 +297,7 @@ export function addS3WithGuestAccess(cwd: string, settings: any): Promise .send(' ') // Select read .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -334,7 +334,7 @@ export function addS3WithGroupAccess(cwd: string, settings: any): Promise .send(' ') // Select read .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('n') + .sendConfirmNo() .sendEof() .run((err: Error) => { if (!err) { @@ -361,12 +361,12 @@ export function addS3WithTrigger(cwd: string, settings: any): Promise { .send(' ') .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .sendCarriageReturn() .sendEof() .run((err: Error) => { @@ -394,12 +394,12 @@ export function updateS3AddTrigger(cwd: string, settings: any): Promise { .wait('What kind of access do you want') // for users? .sendCarriageReturn() .wait('Do you want to add a Lambda Trigger for your S3 Bucket') - .sendLine('y') + .sendConfirmYes() .wait('Select from the following options') .send(KEY_DOWN_ARROW) .sendCarriageReturn() .wait('Do you want to edit the local') - .sendLine('n') + .sendConfirmNo() .sendCarriageReturn() .sendEof() .run((err: Error) => { @@ -441,7 +441,7 @@ export function addS3Storage(projectDir: string): Promise { ['create/update', 'read', 'delete'], ); - chain.wait('Do you want to add a Lambda Trigger for your S3 Bucket?').sendLine('N'); + chain.wait('Do you want to add a Lambda Trigger for your S3 Bucket?').sendConfirmNo(); chain.run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/configure/index.ts b/packages/amplify-e2e-core/src/configure/index.ts index 50e816efa75..d774f035926 100644 --- a/packages/amplify-e2e-core/src/configure/index.ts +++ b/packages/amplify-e2e-core/src/configure/index.ts @@ -1,4 +1,5 @@ import { nspawn as spawn, getCLIPath, singleSelect } from '..'; +import { EOL } from 'os'; type AmplifyConfiguration = { accessKeyId: string; @@ -10,7 +11,7 @@ type AmplifyConfiguration = { const defaultSettings = { profileName: 'amplify-integ-test-user', region: 'us-east-2', - userName: '\r', + userName: EOL, }; export const amplifyRegions = [ @@ -47,7 +48,7 @@ export function amplifyConfigure(settings: AmplifyConfiguration): Promise } return new Promise((resolve, reject) => { - const chain = spawn(getCLIPath(), ['configure'], { stripColors: true }) + const chain = spawn(getCLIPath(process.platform !== 'win32'), ['configure'], { stripColors: true }) .wait('Sign in to your AWS administrator account:') .wait('Press Enter to continue') .sendCarriageReturn() diff --git a/packages/amplify-e2e-core/src/index.ts b/packages/amplify-e2e-core/src/index.ts index 3db6089a257..7d70b57c17a 100644 --- a/packages/amplify-e2e-core/src/index.ts +++ b/packages/amplify-e2e-core/src/index.ts @@ -26,18 +26,26 @@ const amplifyTestsDir = 'amplify-e2e-tests'; export function getCLIPath(testingWithLatestCodebase = false) { if (!testingWithLatestCodebase) { - return process.env.AMPLIFY_PATH || (process.platform === 'win32' ? 'amplify.exe' : 'amplify'); + if (process.env.AMPLIFY_PATH && fs.existsSync(process.env.AMPLIFY_PATH)) { + return process.env.AMPLIFY_PATH; + } + + return process.platform === 'win32' ? 'amplify.exe' : 'amplify'; } const amplifyScriptPath = path.join(__dirname, '..', '..', 'amplify-cli', 'bin', 'amplify'); return amplifyScriptPath; } +export function isTestingWithLatestCodebase(scriptRunnerPath) { + return scriptRunnerPath === process.execPath +} + export function getScriptRunnerPath(testingWithLatestCodebase = false) { if (!testingWithLatestCodebase) { return process.platform === 'win32' ? 'C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe' - : path.join(__dirname, '..', '..', '..', '.circleci', 'exec'); + : 'exec'; } // nodejs executable @@ -80,7 +88,9 @@ export async function installAmplifyCLI(version: string = 'latest') { env: process.env, stdio: 'inherit', }); - process.env.AMPLIFY_PATH = path.join(os.homedir(), '.npm-global', 'bin', 'amplify'); + process.env.AMPLIFY_PATH = process.platform === 'win32' + ? path.join(os.homedir(), '..', '..', 'Program` Files', 'nodejs', 'node_modules', '@aws-amplify', 'cli', 'bin', 'amplify') + : path.join(os.homedir(), '.npm-global', 'bin', 'amplify'); } export async function createNewProjectDir( diff --git a/packages/amplify-e2e-core/src/init/amplifyPull.ts b/packages/amplify-e2e-core/src/init/amplifyPull.ts index 0b55329c37f..322a4c060c4 100644 --- a/packages/amplify-e2e-core/src/init/amplifyPull.ts +++ b/packages/amplify-e2e-core/src/init/amplifyPull.ts @@ -50,7 +50,7 @@ export function amplifyPull( .wait('Local changes detected') .wait('Pulling changes from the cloud will override your local changes') .wait('Are you sure you would like to continue') - .sendLine('y'); + .sendConfirmYes(); } if (settings.noUpdateBackend) { diff --git a/packages/amplify-e2e-core/src/init/amplifyPush.ts b/packages/amplify-e2e-core/src/init/amplifyPush.ts index 6bf71b874fa..87206fa53b2 100644 --- a/packages/amplify-e2e-core/src/init/amplifyPush.ts +++ b/packages/amplify-e2e-core/src/init/amplifyPush.ts @@ -24,7 +24,7 @@ export function amplifyPush(cwd: string, testingWithLatestCodebase: boolean = fa .wait('Are you sure you want to continue?') .sendConfirmYes() .wait('Do you want to generate code for your newly created GraphQL API') - .sendLine('n') + .sendConfirmNo() .wait(/.*/) .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/init/initProjectHelper.ts b/packages/amplify-e2e-core/src/init/initProjectHelper.ts index 95152cccad2..0a942b3e89e 100644 --- a/packages/amplify-e2e-core/src/init/initProjectHelper.ts +++ b/packages/amplify-e2e-core/src/init/initProjectHelper.ts @@ -1,19 +1,20 @@ import { nspawn as spawn, getCLIPath, singleSelect, addCircleCITags } from '..'; import { KEY_DOWN_ARROW } from '../utils'; import { amplifyRegions } from '../configure'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: 'integtest', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, region: process.env.CLI_REGION, local: false, disableAmplifyAppCreation: true, @@ -49,7 +50,7 @@ export function initJSProjectWithProfile(cwd: string, settings?: Partial { if (!err) { resolve(); @@ -428,7 +429,7 @@ export function amplifyStatus(cwd: string, expectedStatus: string, testingWithLa let regex = new RegExp(`.*${expectedStatus}*`); spawn(getCLIPath(testingWithLatestCodebase), ['status'], { cwd, stripColors: true }) .wait(regex) - .sendLine('\r') + .sendCarriageReturn() .run((err: Error) => { if (!err) { resolve(); diff --git a/packages/amplify-e2e-core/src/init/pull-headless.ts b/packages/amplify-e2e-core/src/init/pull-headless.ts index 4c204b01a43..99ae91bdccf 100644 --- a/packages/amplify-e2e-core/src/init/pull-headless.ts +++ b/packages/amplify-e2e-core/src/init/pull-headless.ts @@ -1,17 +1,18 @@ import { nspawn as spawn, getCLIPath } from '..'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: 'integtest', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, appId: '', }; @@ -38,7 +39,7 @@ export function pullProject(cwd: string, settings: Object): Promise { .wait('Start Command:') .sendCarriageReturn() .wait('Do you plan on modifying this backend?') - .sendLine('n') + .sendConfirmNo() .wait('Added backend environment config object to your project.') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-core/src/utils/nexpect.ts b/packages/amplify-e2e-core/src/utils/nexpect.ts index 10079fa30c9..42cbe32b56c 100644 --- a/packages/amplify-e2e-core/src/utils/nexpect.ts +++ b/packages/amplify-e2e-core/src/utils/nexpect.ts @@ -22,7 +22,7 @@ import retimer = require('retimer'); import { join, parse } from 'path'; import * as fs from 'fs-extra'; import * as os from 'os'; -import { getScriptRunnerPath } from '..'; +import { getScriptRunnerPath, isTestingWithLatestCodebase } from '..'; const DEFAULT_NO_OUTPUT_TIMEOUT = process.env.AMPLIFY_TEST_TIMEOUT_SEC ? Number.parseInt(process.env.AMPLIFY_TEST_TIMEOUT_SEC, 10) * 1000 @@ -84,7 +84,6 @@ export type SpawnOptions = { stripColors?: boolean; ignoreCase?: boolean; disableCIDetection?: boolean; - useScriptRunner?: boolean; }; function chain(context: Context): ExecutionContext { @@ -274,7 +273,7 @@ function chain(context: Context): ExecutionContext { sendEof: function (): ExecutionContext { var _sendEof: ExecutionStep = { fn: () => { - context.process.write(''); + context.process.sendEof(); return true; }, shift: true, @@ -623,9 +622,9 @@ export function nspawn(command: string | string[], params: string[] = [], option params = params || parsedArgs.slice(1); } - if (options.useScriptRunner === false) { + const testingWithLatestCodebase = isTestingWithLatestCodebase(command); + if (testingWithLatestCodebase) { params.unshift(command); - const testingWithLatestCodebase = !(command.endsWith('exec') || command.endsWith('powershell.exe')); command = getScriptRunnerPath(testingWithLatestCodebase); } diff --git a/packages/amplify-e2e-core/src/utils/pinpoint.ts b/packages/amplify-e2e-core/src/utils/pinpoint.ts index 596bf69a39e..779cdc8391e 100644 --- a/packages/amplify-e2e-core/src/utils/pinpoint.ts +++ b/packages/amplify-e2e-core/src/utils/pinpoint.ts @@ -1,17 +1,18 @@ import { Pinpoint } from 'aws-sdk'; import { getCLIPath, nspawn as spawn, singleSelect, amplifyRegions, addCircleCITags, KEY_DOWN_ARROW } from '..'; import _ from 'lodash'; +import { EOL } from 'os'; const settings = { - name: '\r', + name: EOL, envName: 'test', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, accessKeyId: process.env.AWS_ACCESS_KEY_ID, secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY, sessionToken: process.env.AWS_SESSION_TOKEN, @@ -87,7 +88,7 @@ export function initProjectForPinpoint(cwd: string): Promise { .wait('Enter a name for the project') .sendLine(settings.name) .wait('Initialize the project with the above configuration?') - .sendLine('n') + .sendConfirmNo() .wait('Enter a name for the environment') .sendLine(settings.envName) .wait('Choose your default editor:') @@ -136,7 +137,7 @@ export function addPinpointAnalytics(cwd: string): Promise { .wait('Provide your pinpoint resource name:') .sendLine(settings.pinpointResourceName) .wait('Apps need authorization to send analytics events. Do you want to allow guests') - .sendLine('n') + .sendConfirmNo() .wait(`Successfully added resource ${settings.pinpointResourceName} locally`) .sendEof() .run((err: Error) => { @@ -170,7 +171,7 @@ export function amplifyDelete(cwd: string): Promise { return new Promise((resolve, reject) => { spawn(getCLIPath(), ['delete'], { cwd, stripColors: true }) .wait('Are you sure you want to continue?') - .sendLine('Y') + .sendConfirmYes() .wait('Project deleted in the cloud') .wait('Project deleted locally.') .run((err: Error) => { diff --git a/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts b/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts index d1cebcf6e57..dbc012ec328 100644 --- a/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts +++ b/packages/amplify-e2e-tests/src/__tests__/migration/node.function.test.ts @@ -94,7 +94,7 @@ describe('nodejs version migration tests', () => { .sendConfirmYes() .wait('Node.js runtime version successfully updated') .wait('Are you sure you want to continue?') - .sendLine('y') + .sendConfirmYes() .wait(/.*/) .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-tests/src/codegen/add.ts b/packages/amplify-e2e-tests/src/codegen/add.ts index 8c9b1c64c02..4fa09c294c6 100644 --- a/packages/amplify-e2e-tests/src/codegen/add.ts +++ b/packages/amplify-e2e-tests/src/codegen/add.ts @@ -10,7 +10,7 @@ export function addCodegen(cwd: string, settings: any): Promise { .wait('Enter the file name pattern of graphql queries, mutations and subscriptions') .sendCarriageReturn() .wait('Do you want to generate/update all possible GraphQL operations') - .sendLine('y') + .sendConfirmYes() .wait('Enter maximum statement depth [increase from default if your schema is deeply') .sendCarriageReturn(); if (settings.ios) { diff --git a/packages/amplify-e2e-tests/src/environment/env.ts b/packages/amplify-e2e-tests/src/environment/env.ts index bf0a9c7f4de..cd927fa7875 100644 --- a/packages/amplify-e2e-tests/src/environment/env.ts +++ b/packages/amplify-e2e-tests/src/environment/env.ts @@ -241,7 +241,7 @@ export function removeEnvironment(cwd: string, settings: { envName: string }): P return new Promise((resolve, reject) => { spawn(getCLIPath(), ['env', 'remove', settings.envName], { cwd, stripColors: true }) .wait(`Are you sure you want to continue?`) - .sendLine('y') + .sendConfirmYes() .wait('Successfully removed environment from your project locally') .run((err: Error) => { if (!err) { diff --git a/packages/amplify-e2e-tests/src/init-special-cases/index.ts b/packages/amplify-e2e-tests/src/init-special-cases/index.ts index 86173937a9d..814c6c95ea1 100644 --- a/packages/amplify-e2e-tests/src/init-special-cases/index.ts +++ b/packages/amplify-e2e-tests/src/init-special-cases/index.ts @@ -56,7 +56,7 @@ async function initWorkflow(cwd: string, settings: { accessKeyId: string; secret .wait('Enter a name for the project') .sendCarriageReturn() .wait('Initialize the project with the above configuration?') - .sendLine('n') + .sendConfirmNo() .wait('Enter a name for the environment') .sendCarriageReturn() .wait('Choose your default editor:') diff --git a/packages/amplify-migration-tests/src/migration-helpers/init.ts b/packages/amplify-migration-tests/src/migration-helpers/init.ts index f5936c80ab7..3df5a4d542c 100644 --- a/packages/amplify-migration-tests/src/migration-helpers/init.ts +++ b/packages/amplify-migration-tests/src/migration-helpers/init.ts @@ -1,17 +1,18 @@ import { addCircleCITags, getCLIPath, nspawn as spawn } from 'amplify-e2e-core'; +import { EOL } from 'os'; const defaultSettings = { - name: '\r', + name: EOL, envName: 'integtest', - editor: '\r', - appType: '\r', - framework: '\r', - srcDir: '\r', - distDir: '\r', - buildCmd: '\r', - startCmd: '\r', - useProfile: '\r', - profileName: '\r', + editor: EOL, + appType: EOL, + framework: EOL, + srcDir: EOL, + distDir: EOL, + buildCmd: EOL, + startCmd: EOL, + useProfile: EOL, + profileName: EOL, region: process.env.CLI_REGION, local: false, disableAmplifyAppCreation: true, @@ -82,7 +83,7 @@ export function initJSProjectWithProfile(cwd: string, settings: Object, testingW .wait('Enter a name for the project') .sendLine(s.name) .wait('Initialize the project with the above configuration?') - .sendLine('n') + .sendConfirmNo() .wait('Enter a name for the environment') .sendLine(s.envName) .wait('Choose your default editor:') diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index eb1d1de259d..afbd26af863 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -4,7 +4,7 @@ import { join } from 'path'; import * as fs from 'fs-extra'; import { supportedRegions } from '../packages/amplify-category-geo/src/constants'; -const CONCURRENCY = 4; +const CONCURRENCY = 12; // Some our e2e tests are known to fail when run on windows hosts // These are caused by issues with our test harness, not broken cli behavior on windows // (examples: sending line endings when we shouldn't, java/gradle not installed on windows host) @@ -12,17 +12,24 @@ const CONCURRENCY = 4; // For now, this list is being used to skip creation of circleci jobs for these tasks const WINDOWS_TEST_FAILURES = [ 'amplify-app-amplify_e2e_tests', + 'api_1-amplify_e2e_tests', 'api_2-amplify_e2e_tests', + 'api_3-amplify_e2e_tests', 'api_4-amplify_e2e_tests', 'api_5-amplify_e2e_tests', 'auth_1-amplify_e2e_tests', 'auth_2-amplify_e2e_tests', 'auth_3-amplify_e2e_tests', 'datastore-modelgen-amplify_e2e_tests', + 'delete-amplify_e2e_tests', 'env-amplify_e2e_tests', + 'feature-flags-amplify_e2e_tests', + 'function_1-amplify_e2e_tests', + 'function_2-amplify_e2e_tests', 'function_3-amplify_e2e_tests', 'function_4-amplify_e2e_tests', 'function_6-amplify_e2e_tests', + 'function_5-amplify_e2e_tests', 'function_7-amplify_e2e_tests', 'hosting-amplify_e2e_tests', 'hostingPROD-amplify_e2e_tests', @@ -38,6 +45,8 @@ const WINDOWS_TEST_FAILURES = [ 'migration-api-key-migration2-amplify_e2e_tests', 'migration-api-key-migration3-amplify_e2e_tests', 'migration-node-function-amplify_e2e_tests', + 'predictions-amplify_e2e_tests', + 'pull-amplify_e2e_tests', 'schema-auth-1-amplify_e2e_tests', 'schema-auth-2-amplify_e2e_tests', 'schema-auth-3-amplify_e2e_tests', @@ -58,6 +67,7 @@ const WINDOWS_TEST_FAILURES = [ 'schema-iterative-update-locking-amplify_e2e_tests', 'schema-iterative-rollback-1-amplify_e2e_tests', 'schema-iterative-rollback-2-amplify_e2e_tests', + 'schema-key-amplify_e2e_tests_pkg_linux', 'schema-model-amplify_e2e_tests', 'storage-amplify_e2e_tests', ]; @@ -86,6 +96,13 @@ const USE_PARENT_ACCOUNT = [ 'migration-node-function-amplify_e2e_tests', 'schema-function-amplify_e2e_tests', 'schema-iterative-update-locking-amplify_e2e_tests', + 'migration-api-key-migration2-amplify_e2e_tests', + 'api_1-amplify_e2e_tests', + 'api_2-amplify_e2e_tests', + 'import_s3_1-amplify_e2e_tests', + 'import_dynamodb_1-amplify_e2e_tests', + 'storage-amplify_e2e_tests', + 'function_2-amplify_e2e_tests', ]; // This array needs to be update periodically when new tests suites get added From 41263c50d512b01a0f5d6c289653a2deede32bda Mon Sep 17 00:00:00 2001 From: John Corser Date: Mon, 27 Sep 2021 01:09:46 -0400 Subject: [PATCH 6/9] chore: do not run test suite on win-e2e branch --- .circleci/config.base.yml | 26 +- .circleci/config.yml | 685 +++++++++---------------- packages/amplify-e2e-core/src/index.ts | 7 - scripts/split-e2e-tests.ts | 22 +- 4 files changed, 263 insertions(+), 477 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index ef298e567bc..ac5de237fda 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -284,12 +284,12 @@ jobs: steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_linux_e2e_tests: + done_with_pkg_e2e_tests: <<: *node12 steps: - run: echo 'Done with pkg CLI E2E Tests' - amplify_e2e_tests_pkg_linux: + amplify_e2e_tests_pkg: parameters: os: type: executor @@ -752,7 +752,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -766,7 +765,6 @@ workflows: branches: only: - master - - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ @@ -778,7 +776,6 @@ workflows: branches: only: - master - - win-e2e - beta - release - /tagged-release\/.*/ @@ -796,7 +793,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - amplify_e2e_tests: @@ -811,7 +807,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -820,7 +815,7 @@ workflows: - done_with_node_e2e_tests: requires: - amplify_e2e_tests - - amplify_e2e_tests_pkg_linux: + - amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -830,15 +825,14 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - done_with_node_e2e_tests - build_pkg_binaries - - done_with_pkg_linux_e2e_tests: + - done_with_pkg_e2e_tests: requires: - - amplify_e2e_tests_pkg_linux + - amplify_e2e_tests_pkg - amplify_migration_tests_latest: context: - amplify-ecr-image-pull @@ -849,7 +843,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -865,7 +858,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -881,7 +873,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -897,7 +888,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -913,7 +903,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -955,7 +944,7 @@ workflows: - cleanup-resources - e2e-test-context requires: - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_migration_tests_latest - amplify_migration_tests_v4 - amplify_migration_tests_v4_30_0 @@ -970,7 +959,7 @@ workflows: - mock_e2e_tests - graphql_e2e_tests - integration_test - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest @@ -984,7 +973,6 @@ workflows: only: - release - master - - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ diff --git a/.circleci/config.yml b/.circleci/config.yml index 3f1d4786acf..a457c997e11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -368,7 +368,7 @@ jobs: resource_class: large steps: - run: echo 'Done with Node CLI E2E Tests' - done_with_pkg_linux_e2e_tests: + done_with_pkg_e2e_tests: working_directory: ~/repo docker: - image: circleci/node:12 @@ -378,7 +378,7 @@ jobs: resource_class: large steps: - run: echo 'Done with pkg CLI E2E Tests' - amplify_e2e_tests_pkg_linux: + amplify_e2e_tests_pkg: parameters: os: type: executor @@ -1064,7 +1064,6 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 - USE_PARENT_ACCOUNT: 1 configure-project-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1645,7 +1644,6 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: ap-northeast-1 - USE_PARENT_ACCOUNT: 1 pull-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1820,7 +1818,6 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-east-2 - USE_PARENT_ACCOUNT: 1 plugin-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3329,7 +3326,6 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: ap-southeast-1 - USE_PARENT_ACCOUNT: 1 function_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3620,7 +3616,6 @@ jobs: environment: TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 - USE_PARENT_ACCOUNT: 1 auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3679,7 +3674,6 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: ap-northeast-1 - USE_PARENT_ACCOUNT: 1 layer-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5018,7 +5012,6 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-function.test.ts CLI_REGION: ap-southeast-2 - USE_PARENT_ACCOUNT: 1 schema-model-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5660,7 +5653,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts CLI_REGION: eu-central-1 - api_4-amplify_e2e_tests_pkg_linux: + api_4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5697,7 +5690,7 @@ jobs: environment: TEST_SUITE: src/__tests__/api_4.test.ts CLI_REGION: us-east-2 - auth_6-amplify_e2e_tests_pkg_linux: + auth_6-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5734,8 +5727,7 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 - USE_PARENT_ACCOUNT: 1 - configure-project-amplify_e2e_tests_pkg_linux: + configure-project-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5772,7 +5764,7 @@ jobs: environment: TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: eu-west-2 - container-hosting-amplify_e2e_tests_pkg_linux: + container-hosting-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5809,7 +5801,7 @@ jobs: environment: TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: eu-central-1 - frontend_config_drift-amplify_e2e_tests_pkg_linux: + frontend_config_drift-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5846,7 +5838,7 @@ jobs: environment: TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-northeast-1 - function_5-amplify_e2e_tests_pkg_linux: + function_5-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5883,7 +5875,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: ap-southeast-1 - function_6-amplify_e2e_tests_pkg_linux: + function_6-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5920,7 +5912,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: ap-southeast-2 - function_7-amplify_e2e_tests_pkg_linux: + function_7-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5957,7 +5949,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: us-east-2 - hooks-amplify_e2e_tests_pkg_linux: + hooks-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -5994,7 +5986,7 @@ jobs: environment: TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: us-west-2 - iam-permissions-boundary-amplify_e2e_tests_pkg_linux: + iam-permissions-boundary-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6031,7 +6023,7 @@ jobs: environment: TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: eu-west-2 - layer-2-amplify_e2e_tests_pkg_linux: + layer-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6068,7 +6060,7 @@ jobs: environment: TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: eu-central-1 - migration-node-function-amplify_e2e_tests_pkg_linux: + migration-node-function-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6105,8 +6097,7 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: ap-northeast-1 - USE_PARENT_ACCOUNT: 1 - pull-amplify_e2e_tests_pkg_linux: + pull-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6143,7 +6134,7 @@ jobs: environment: TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: ap-southeast-1 - s3-sse-amplify_e2e_tests_pkg_linux: + s3-sse-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6180,7 +6171,7 @@ jobs: environment: TEST_SUITE: src/__tests__/s3-sse.test.ts CLI_REGION: ap-southeast-2 - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: + schema-iterative-update-locking-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6217,8 +6208,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-east-2 - USE_PARENT_ACCOUNT: 1 - plugin-amplify_e2e_tests_pkg_linux: + plugin-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6255,7 +6245,7 @@ jobs: environment: TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: us-west-2 - init-special-case-amplify_e2e_tests_pkg_linux: + init-special-case-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6292,7 +6282,7 @@ jobs: environment: TEST_SUITE: src/__tests__/init-special-case.test.ts CLI_REGION: eu-west-2 - datastore-modelgen-amplify_e2e_tests_pkg_linux: + datastore-modelgen-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6329,7 +6319,7 @@ jobs: environment: TEST_SUITE: src/__tests__/datastore-modelgen.test.ts CLI_REGION: eu-central-1 - amplify-configure-amplify_e2e_tests_pkg_linux: + amplify-configure-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6366,7 +6356,7 @@ jobs: environment: TEST_SUITE: src/__tests__/amplify-configure.test.ts CLI_REGION: ap-northeast-1 - init-amplify_e2e_tests_pkg_linux: + init-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6403,7 +6393,7 @@ jobs: environment: TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: ap-southeast-1 - tags-amplify_e2e_tests_pkg_linux: + tags-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6440,7 +6430,7 @@ jobs: environment: TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: ap-southeast-2 - notifications-amplify_e2e_tests_pkg_linux: + notifications-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6477,7 +6467,7 @@ jobs: environment: TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: us-east-2 - schema-versioned-amplify_e2e_tests_pkg_linux: + schema-versioned-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6514,7 +6504,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: us-west-2 - schema-data-access-patterns-amplify_e2e_tests_pkg_linux: + schema-data-access-patterns-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6551,7 +6541,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: eu-west-2 - interactions-amplify_e2e_tests_pkg_linux: + interactions-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6588,7 +6578,7 @@ jobs: environment: TEST_SUITE: src/__tests__/interactions.test.ts CLI_REGION: us-west-2 - schema-predictions-amplify_e2e_tests_pkg_linux: + schema-predictions-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6625,7 +6615,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: ap-northeast-1 - amplify-app-amplify_e2e_tests_pkg_linux: + amplify-app-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6662,7 +6652,7 @@ jobs: environment: TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: ap-southeast-1 - hosting-amplify_e2e_tests_pkg_linux: + hosting-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6699,7 +6689,7 @@ jobs: environment: TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: ap-southeast-2 - analytics-amplify_e2e_tests_pkg_linux: + analytics-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6736,7 +6726,7 @@ jobs: environment: TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: us-east-2 - feature-flags-amplify_e2e_tests_pkg_linux: + feature-flags-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6773,7 +6763,7 @@ jobs: environment: TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: us-west-2 - schema-iterative-update-2-amplify_e2e_tests_pkg_linux: + schema-iterative-update-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6810,7 +6800,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: eu-west-2 - containers-api-amplify_e2e_tests_pkg_linux: + containers-api-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6847,7 +6837,7 @@ jobs: environment: TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: eu-central-1 - predictions-amplify_e2e_tests_pkg_linux: + predictions-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6884,7 +6874,7 @@ jobs: environment: TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: ap-northeast-1 - hostingPROD-amplify_e2e_tests_pkg_linux: + hostingPROD-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6921,7 +6911,7 @@ jobs: environment: TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: ap-southeast-1 - geo-add-amplify_e2e_tests_pkg_linux: + geo-add-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6958,7 +6948,7 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-add.test.ts CLI_REGION: ap-southeast-1 - geo-update-amplify_e2e_tests_pkg_linux: + geo-update-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -6995,7 +6985,7 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-update.test.ts CLI_REGION: ap-southeast-2 - geo-remove-amplify_e2e_tests_pkg_linux: + geo-remove-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7032,7 +7022,7 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-remove.test.ts CLI_REGION: us-east-2 - schema-auth-10-amplify_e2e_tests_pkg_linux: + schema-auth-10-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7069,7 +7059,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: eu-west-2 - schema-key-amplify_e2e_tests_pkg_linux: + schema-key-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7106,7 +7096,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: eu-central-1 - auth_1-amplify_e2e_tests_pkg_linux: + auth_1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7143,7 +7133,7 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: ap-northeast-1 - auth_5-amplify_e2e_tests_pkg_linux: + auth_5-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7180,8 +7170,7 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: ap-southeast-1 - USE_PARENT_ACCOUNT: 1 - function_3-amplify_e2e_tests_pkg_linux: + function_3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7218,7 +7207,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: ap-southeast-2 - schema-iterative-update-1-amplify_e2e_tests_pkg_linux: + schema-iterative-update-1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7255,7 +7244,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: us-east-2 - schema-auth-3-amplify_e2e_tests_pkg_linux: + schema-auth-3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7292,7 +7281,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: us-west-2 - delete-amplify_e2e_tests_pkg_linux: + delete-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7329,7 +7318,7 @@ jobs: environment: TEST_SUITE: src/__tests__/delete.test.ts CLI_REGION: eu-west-2 - function_2-amplify_e2e_tests_pkg_linux: + function_2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7366,8 +7355,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 - USE_PARENT_ACCOUNT: 1 - auth_3-amplify_e2e_tests_pkg_linux: + auth_3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7404,8 +7392,7 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: ap-northeast-1 - USE_PARENT_ACCOUNT: 1 - layer-amplify_e2e_tests_pkg_linux: + layer-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7442,7 +7429,7 @@ jobs: environment: TEST_SUITE: src/__tests__/layer.test.ts CLI_REGION: ap-southeast-1 - migration-api-key-migration1-amplify_e2e_tests_pkg_linux: + migration-api-key-migration1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7479,7 +7466,7 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: ap-southeast-2 - auth_4-amplify_e2e_tests_pkg_linux: + auth_4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7516,7 +7503,7 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: us-east-2 - schema-auth-7-amplify_e2e_tests_pkg_linux: + schema-auth-7-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7553,7 +7540,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-7.test.ts CLI_REGION: us-west-2 - schema-auth-8-amplify_e2e_tests_pkg_linux: + schema-auth-8-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7590,7 +7577,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-8.test.ts CLI_REGION: eu-west-2 - schema-searchable-amplify_e2e_tests_pkg_linux: + schema-searchable-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7627,7 +7614,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-searchable.test.ts CLI_REGION: eu-central-1 - schema-auth-4-amplify_e2e_tests_pkg_linux: + schema-auth-4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7664,7 +7651,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-4.test.ts CLI_REGION: ap-northeast-1 - api_3-amplify_e2e_tests_pkg_linux: + api_3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7701,7 +7688,7 @@ jobs: environment: TEST_SUITE: src/__tests__/api_3.test.ts CLI_REGION: ap-southeast-1 - import_auth_1-amplify_e2e_tests_pkg_linux: + import_auth_1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7738,7 +7725,7 @@ jobs: environment: TEST_SUITE: src/__tests__/import_auth_1.test.ts CLI_REGION: ap-southeast-2 - import_auth_2-amplify_e2e_tests_pkg_linux: + import_auth_2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7775,7 +7762,7 @@ jobs: environment: TEST_SUITE: src/__tests__/import_auth_2.test.ts CLI_REGION: us-east-2 - import_s3_1-amplify_e2e_tests_pkg_linux: + import_s3_1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7813,7 +7800,7 @@ jobs: TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: us-west-2 USE_PARENT_ACCOUNT: 1 - import_dynamodb_1-amplify_e2e_tests_pkg_linux: + import_dynamodb_1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7851,7 +7838,7 @@ jobs: TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: + schema-iterative-rollback-1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7888,7 +7875,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts CLI_REGION: eu-central-1 - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: + schema-iterative-rollback-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7925,7 +7912,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts CLI_REGION: ap-northeast-1 - env-amplify_e2e_tests_pkg_linux: + env-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -7962,8 +7949,7 @@ jobs: environment: TEST_SUITE: src/__tests__/env.test.ts CLI_REGION: ap-southeast-1 - USE_PARENT_ACCOUNT: 1 - auth_2-amplify_e2e_tests_pkg_linux: + auth_2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8001,7 +7987,7 @@ jobs: TEST_SUITE: src/__tests__/auth_2.test.ts CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 - schema-auth-9-amplify_e2e_tests_pkg_linux: + schema-auth-9-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8038,7 +8024,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-9.test.ts CLI_REGION: us-east-2 - schema-auth-11-amplify_e2e_tests_pkg_linux: + schema-auth-11-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8075,7 +8061,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-11.test.ts CLI_REGION: us-west-2 - migration-api-key-migration2-amplify_e2e_tests_pkg_linux: + migration-api-key-migration2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8113,7 +8099,7 @@ jobs: TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 - function_1-amplify_e2e_tests_pkg_linux: + function_1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8150,7 +8136,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_1.test.ts CLI_REGION: eu-central-1 - schema-auth-1-amplify_e2e_tests_pkg_linux: + schema-auth-1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8187,7 +8173,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-1.test.ts CLI_REGION: ap-northeast-1 - function_4-amplify_e2e_tests_pkg_linux: + function_4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8224,7 +8210,7 @@ jobs: environment: TEST_SUITE: src/__tests__/function_4.test.ts CLI_REGION: ap-southeast-1 - schema-function-amplify_e2e_tests_pkg_linux: + schema-function-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8261,8 +8247,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-function.test.ts CLI_REGION: ap-southeast-2 - USE_PARENT_ACCOUNT: 1 - schema-model-amplify_e2e_tests_pkg_linux: + schema-model-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8299,7 +8284,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-model.test.ts CLI_REGION: us-east-2 - migration-api-connection-migration-amplify_e2e_tests_pkg_linux: + migration-api-connection-migration-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8336,7 +8321,7 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts CLI_REGION: us-west-2 - schema-connection-amplify_e2e_tests_pkg_linux: + schema-connection-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8373,7 +8358,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-connection.test.ts CLI_REGION: eu-west-2 - schema-auth-6-amplify_e2e_tests_pkg_linux: + schema-auth-6-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8410,7 +8395,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-6.test.ts CLI_REGION: eu-central-1 - schema-iterative-update-3-amplify_e2e_tests_pkg_linux: + schema-iterative-update-3-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8447,7 +8432,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts CLI_REGION: ap-northeast-1 - schema-auth-2-amplify_e2e_tests_pkg_linux: + schema-auth-2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8484,7 +8469,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-2.test.ts CLI_REGION: ap-southeast-1 - api_1-amplify_e2e_tests_pkg_linux: + api_1-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8522,7 +8507,7 @@ jobs: TEST_SUITE: src/__tests__/api_1.test.ts CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 - schema-auth-5-amplify_e2e_tests_pkg_linux: + schema-auth-5-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8559,7 +8544,7 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-5.test.ts CLI_REGION: us-east-2 - storage-amplify_e2e_tests_pkg_linux: + storage-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8597,7 +8582,7 @@ jobs: TEST_SUITE: src/__tests__/storage.test.ts CLI_REGION: us-west-2 USE_PARENT_ACCOUNT: 1 - api_2-amplify_e2e_tests_pkg_linux: + api_2-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8635,7 +8620,7 @@ jobs: TEST_SUITE: src/__tests__/api_2.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 - schema-iterative-update-4-amplify_e2e_tests_pkg_linux: + schema-iterative-update-4-amplify_e2e_tests_pkg: parameters: os: type: executor @@ -8735,7 +8720,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8749,7 +8733,6 @@ workflows: branches: only: - master - - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ @@ -8761,7 +8744,6 @@ workflows: branches: only: - master - - win-e2e - beta - release - /tagged-release\/.*/ @@ -8779,7 +8761,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - done_with_node_e2e_tests: @@ -8865,89 +8846,89 @@ workflows: - auth_2-amplify_e2e_tests - schema-function-amplify_e2e_tests - api_1-amplify_e2e_tests - - done_with_pkg_linux_e2e_tests: - requires: - - api_4-amplify_e2e_tests_pkg_linux - - function_7-amplify_e2e_tests_pkg_linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux - - notifications-amplify_e2e_tests_pkg_linux - - analytics-amplify_e2e_tests_pkg_linux - - geo-remove-amplify_e2e_tests_pkg_linux - - schema-iterative-update-1-amplify_e2e_tests_pkg_linux - - auth_4-amplify_e2e_tests_pkg_linux - - import_auth_2-amplify_e2e_tests_pkg_linux - - schema-auth-9-amplify_e2e_tests_pkg_linux - - schema-model-amplify_e2e_tests_pkg_linux - - schema-auth-5-amplify_e2e_tests_pkg_linux - - auth_6-amplify_e2e_tests_pkg_linux - - hooks-amplify_e2e_tests_pkg_linux - - plugin-amplify_e2e_tests_pkg_linux - - schema-versioned-amplify_e2e_tests_pkg_linux - - interactions-amplify_e2e_tests_pkg_linux - - feature-flags-amplify_e2e_tests_pkg_linux - - schema-auth-3-amplify_e2e_tests_pkg_linux - - schema-auth-7-amplify_e2e_tests_pkg_linux - - import_s3_1-amplify_e2e_tests_pkg_linux - - schema-auth-11-amplify_e2e_tests_pkg_linux - - migration-api-connection-migration-amplify_e2e_tests_pkg_linux - - storage-amplify_e2e_tests_pkg_linux - - configure-project-amplify_e2e_tests_pkg_linux - - iam-permissions-boundary-amplify_e2e_tests_pkg_linux - - init-special-case-amplify_e2e_tests_pkg_linux - - schema-data-access-patterns-amplify_e2e_tests_pkg_linux - - schema-iterative-update-2-amplify_e2e_tests_pkg_linux - - schema-auth-10-amplify_e2e_tests_pkg_linux - - delete-amplify_e2e_tests_pkg_linux - - schema-auth-8-amplify_e2e_tests_pkg_linux - - import_dynamodb_1-amplify_e2e_tests_pkg_linux - - migration-api-key-migration2-amplify_e2e_tests_pkg_linux - - schema-connection-amplify_e2e_tests_pkg_linux - - api_2-amplify_e2e_tests_pkg_linux - - container-hosting-amplify_e2e_tests_pkg_linux - - layer-2-amplify_e2e_tests_pkg_linux - - datastore-modelgen-amplify_e2e_tests_pkg_linux - - containers-api-amplify_e2e_tests_pkg_linux - - schema-key-amplify_e2e_tests_pkg_linux - - function_2-amplify_e2e_tests_pkg_linux - - schema-searchable-amplify_e2e_tests_pkg_linux - - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux - - function_1-amplify_e2e_tests_pkg_linux - - schema-auth-6-amplify_e2e_tests_pkg_linux - - schema-iterative-update-4-amplify_e2e_tests_pkg_linux - - frontend_config_drift-amplify_e2e_tests_pkg_linux - - migration-node-function-amplify_e2e_tests_pkg_linux - - amplify-configure-amplify_e2e_tests_pkg_linux - - schema-predictions-amplify_e2e_tests_pkg_linux - - predictions-amplify_e2e_tests_pkg_linux - - auth_1-amplify_e2e_tests_pkg_linux - - auth_3-amplify_e2e_tests_pkg_linux - - schema-auth-4-amplify_e2e_tests_pkg_linux - - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux - - schema-auth-1-amplify_e2e_tests_pkg_linux - - schema-iterative-update-3-amplify_e2e_tests_pkg_linux - - function_5-amplify_e2e_tests_pkg_linux - - pull-amplify_e2e_tests_pkg_linux - - init-amplify_e2e_tests_pkg_linux - - amplify-app-amplify_e2e_tests_pkg_linux - - hostingPROD-amplify_e2e_tests_pkg_linux - - geo-add-amplify_e2e_tests_pkg_linux - - auth_5-amplify_e2e_tests_pkg_linux - - layer-amplify_e2e_tests_pkg_linux - - api_3-amplify_e2e_tests_pkg_linux - - env-amplify_e2e_tests_pkg_linux - - function_4-amplify_e2e_tests_pkg_linux - - schema-auth-2-amplify_e2e_tests_pkg_linux - - function_6-amplify_e2e_tests_pkg_linux - - s3-sse-amplify_e2e_tests_pkg_linux - - tags-amplify_e2e_tests_pkg_linux - - hosting-amplify_e2e_tests_pkg_linux - - geo-update-amplify_e2e_tests_pkg_linux - - function_3-amplify_e2e_tests_pkg_linux - - migration-api-key-migration1-amplify_e2e_tests_pkg_linux - - import_auth_1-amplify_e2e_tests_pkg_linux - - auth_2-amplify_e2e_tests_pkg_linux - - schema-function-amplify_e2e_tests_pkg_linux - - api_1-amplify_e2e_tests_pkg_linux + - done_with_pkg_e2e_tests: + requires: + - api_4-amplify_e2e_tests_pkg + - function_7-amplify_e2e_tests_pkg + - schema-iterative-update-locking-amplify_e2e_tests_pkg + - notifications-amplify_e2e_tests_pkg + - analytics-amplify_e2e_tests_pkg + - geo-remove-amplify_e2e_tests_pkg + - schema-iterative-update-1-amplify_e2e_tests_pkg + - auth_4-amplify_e2e_tests_pkg + - import_auth_2-amplify_e2e_tests_pkg + - schema-auth-9-amplify_e2e_tests_pkg + - schema-model-amplify_e2e_tests_pkg + - schema-auth-5-amplify_e2e_tests_pkg + - auth_6-amplify_e2e_tests_pkg + - hooks-amplify_e2e_tests_pkg + - plugin-amplify_e2e_tests_pkg + - schema-versioned-amplify_e2e_tests_pkg + - interactions-amplify_e2e_tests_pkg + - feature-flags-amplify_e2e_tests_pkg + - schema-auth-3-amplify_e2e_tests_pkg + - schema-auth-7-amplify_e2e_tests_pkg + - import_s3_1-amplify_e2e_tests_pkg + - schema-auth-11-amplify_e2e_tests_pkg + - migration-api-connection-migration-amplify_e2e_tests_pkg + - storage-amplify_e2e_tests_pkg + - configure-project-amplify_e2e_tests_pkg + - iam-permissions-boundary-amplify_e2e_tests_pkg + - init-special-case-amplify_e2e_tests_pkg + - schema-data-access-patterns-amplify_e2e_tests_pkg + - schema-iterative-update-2-amplify_e2e_tests_pkg + - schema-auth-10-amplify_e2e_tests_pkg + - delete-amplify_e2e_tests_pkg + - schema-auth-8-amplify_e2e_tests_pkg + - import_dynamodb_1-amplify_e2e_tests_pkg + - migration-api-key-migration2-amplify_e2e_tests_pkg + - schema-connection-amplify_e2e_tests_pkg + - api_2-amplify_e2e_tests_pkg + - container-hosting-amplify_e2e_tests_pkg + - layer-2-amplify_e2e_tests_pkg + - datastore-modelgen-amplify_e2e_tests_pkg + - containers-api-amplify_e2e_tests_pkg + - schema-key-amplify_e2e_tests_pkg + - function_2-amplify_e2e_tests_pkg + - schema-searchable-amplify_e2e_tests_pkg + - schema-iterative-rollback-1-amplify_e2e_tests_pkg + - function_1-amplify_e2e_tests_pkg + - schema-auth-6-amplify_e2e_tests_pkg + - schema-iterative-update-4-amplify_e2e_tests_pkg + - frontend_config_drift-amplify_e2e_tests_pkg + - migration-node-function-amplify_e2e_tests_pkg + - amplify-configure-amplify_e2e_tests_pkg + - schema-predictions-amplify_e2e_tests_pkg + - predictions-amplify_e2e_tests_pkg + - auth_1-amplify_e2e_tests_pkg + - auth_3-amplify_e2e_tests_pkg + - schema-auth-4-amplify_e2e_tests_pkg + - schema-iterative-rollback-2-amplify_e2e_tests_pkg + - schema-auth-1-amplify_e2e_tests_pkg + - schema-iterative-update-3-amplify_e2e_tests_pkg + - function_5-amplify_e2e_tests_pkg + - pull-amplify_e2e_tests_pkg + - init-amplify_e2e_tests_pkg + - amplify-app-amplify_e2e_tests_pkg + - hostingPROD-amplify_e2e_tests_pkg + - geo-add-amplify_e2e_tests_pkg + - auth_5-amplify_e2e_tests_pkg + - layer-amplify_e2e_tests_pkg + - api_3-amplify_e2e_tests_pkg + - env-amplify_e2e_tests_pkg + - function_4-amplify_e2e_tests_pkg + - schema-auth-2-amplify_e2e_tests_pkg + - function_6-amplify_e2e_tests_pkg + - s3-sse-amplify_e2e_tests_pkg + - tags-amplify_e2e_tests_pkg + - hosting-amplify_e2e_tests_pkg + - geo-update-amplify_e2e_tests_pkg + - function_3-amplify_e2e_tests_pkg + - migration-api-key-migration1-amplify_e2e_tests_pkg + - import_auth_1-amplify_e2e_tests_pkg + - auth_2-amplify_e2e_tests_pkg + - schema-function-amplify_e2e_tests_pkg + - api_1-amplify_e2e_tests_pkg - amplify_migration_tests_latest: context: - amplify-ecr-image-pull @@ -8958,7 +8939,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8974,7 +8954,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8990,7 +8969,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9006,7 +8984,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9022,7 +8999,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9070,7 +9046,7 @@ workflows: - cleanup-resources - e2e-test-context requires: - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_migration_tests_latest - amplify_migration_tests_v4 - amplify_migration_tests_v4_30_0 @@ -9084,7 +9060,7 @@ workflows: - mock_e2e_tests - graphql_e2e_tests - integration_test - - done_with_pkg_linux_e2e_tests + - done_with_pkg_e2e_tests - amplify_sudo_install_test - amplify_console_integration_tests - amplify_migration_tests_latest @@ -9098,7 +9074,6 @@ workflows: only: - release - master - - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ @@ -9128,7 +9103,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9156,7 +9130,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9184,7 +9157,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9212,7 +9184,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9240,7 +9211,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9268,7 +9238,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9296,7 +9265,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9324,7 +9292,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9352,7 +9319,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9380,7 +9346,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9408,7 +9373,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9436,7 +9400,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9464,7 +9427,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9492,7 +9454,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9520,7 +9481,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9548,7 +9508,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9576,7 +9535,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9604,7 +9562,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9632,7 +9589,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9660,7 +9616,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9688,7 +9643,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9716,7 +9670,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9744,7 +9697,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9772,7 +9724,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9800,7 +9751,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9828,7 +9778,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9856,7 +9805,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9884,7 +9832,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9912,7 +9859,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9940,7 +9886,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9968,7 +9913,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9996,7 +9940,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10024,7 +9967,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10052,7 +9994,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10080,7 +10021,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10108,7 +10048,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10136,7 +10075,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10164,7 +10102,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10192,7 +10129,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10220,7 +10156,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10248,7 +10183,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10276,7 +10210,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10304,7 +10237,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10332,7 +10264,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10360,7 +10291,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10388,7 +10318,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10416,7 +10345,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10444,7 +10372,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10472,7 +10399,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10500,7 +10426,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10528,7 +10453,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10556,7 +10480,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10584,7 +10507,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10612,7 +10534,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10640,7 +10561,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10668,7 +10588,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10696,7 +10615,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10724,7 +10642,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10752,7 +10669,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10780,7 +10696,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10808,7 +10723,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10836,7 +10750,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10864,7 +10777,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10892,7 +10804,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10920,7 +10831,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10948,7 +10858,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -10976,7 +10885,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11004,7 +10912,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11032,7 +10939,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11060,7 +10966,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11088,7 +10993,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11116,7 +11020,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11144,7 +11047,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11172,7 +11074,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11200,7 +11101,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11228,7 +11128,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11256,7 +11155,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11284,7 +11182,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11312,7 +11209,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11340,7 +11236,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11368,7 +11263,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11378,7 +11272,7 @@ workflows: parameters: os: - linux - - api_4-amplify_e2e_tests_pkg_linux: + - api_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11388,7 +11282,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11398,7 +11291,7 @@ workflows: parameters: os: - linux - - function_7-amplify_e2e_tests_pkg_linux: + - function_7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11408,7 +11301,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11418,7 +11310,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-locking-amplify_e2e_tests_pkg_linux: + - schema-iterative-update-locking-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11428,7 +11320,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11438,7 +11329,7 @@ workflows: parameters: os: - linux - - notifications-amplify_e2e_tests_pkg_linux: + - notifications-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11448,7 +11339,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11459,7 +11349,7 @@ workflows: os: - linux - windows - - analytics-amplify_e2e_tests_pkg_linux: + - analytics-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11469,7 +11359,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11480,7 +11369,7 @@ workflows: os: - linux - windows - - geo-remove-amplify_e2e_tests_pkg_linux: + - geo-remove-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11490,7 +11379,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11501,7 +11389,7 @@ workflows: os: - linux - windows - - schema-iterative-update-1-amplify_e2e_tests_pkg_linux: + - schema-iterative-update-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11511,7 +11399,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11521,7 +11408,7 @@ workflows: parameters: os: - linux - - auth_4-amplify_e2e_tests_pkg_linux: + - auth_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11531,7 +11418,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11542,7 +11428,7 @@ workflows: os: - linux - windows - - import_auth_2-amplify_e2e_tests_pkg_linux: + - import_auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11552,7 +11438,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11562,7 +11447,7 @@ workflows: parameters: os: - linux - - schema-auth-9-amplify_e2e_tests_pkg_linux: + - schema-auth-9-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11572,7 +11457,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11582,7 +11466,7 @@ workflows: parameters: os: - linux - - schema-model-amplify_e2e_tests_pkg_linux: + - schema-model-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11592,7 +11476,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11602,7 +11485,7 @@ workflows: parameters: os: - linux - - schema-auth-5-amplify_e2e_tests_pkg_linux: + - schema-auth-5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11612,7 +11495,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11622,7 +11504,7 @@ workflows: parameters: os: - linux - - auth_6-amplify_e2e_tests_pkg_linux: + - auth_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11632,7 +11514,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11643,7 +11524,7 @@ workflows: os: - linux - windows - - hooks-amplify_e2e_tests_pkg_linux: + - hooks-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11653,7 +11534,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11664,7 +11544,7 @@ workflows: os: - linux - windows - - plugin-amplify_e2e_tests_pkg_linux: + - plugin-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11674,7 +11554,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11685,7 +11564,7 @@ workflows: os: - linux - windows - - schema-versioned-amplify_e2e_tests_pkg_linux: + - schema-versioned-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11695,7 +11574,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11706,7 +11584,7 @@ workflows: os: - linux - windows - - interactions-amplify_e2e_tests_pkg_linux: + - interactions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11716,7 +11594,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11727,7 +11604,7 @@ workflows: os: - linux - windows - - feature-flags-amplify_e2e_tests_pkg_linux: + - feature-flags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11737,7 +11614,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11747,7 +11623,7 @@ workflows: parameters: os: - linux - - schema-auth-3-amplify_e2e_tests_pkg_linux: + - schema-auth-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11757,7 +11633,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11767,7 +11642,7 @@ workflows: parameters: os: - linux - - schema-auth-7-amplify_e2e_tests_pkg_linux: + - schema-auth-7-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11777,7 +11652,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11787,7 +11661,7 @@ workflows: parameters: os: - linux - - import_s3_1-amplify_e2e_tests_pkg_linux: + - import_s3_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11797,7 +11671,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11807,7 +11680,7 @@ workflows: parameters: os: - linux - - schema-auth-11-amplify_e2e_tests_pkg_linux: + - schema-auth-11-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11817,7 +11690,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11827,7 +11699,7 @@ workflows: parameters: os: - linux - - migration-api-connection-migration-amplify_e2e_tests_pkg_linux: + - migration-api-connection-migration-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11837,7 +11709,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11847,7 +11718,7 @@ workflows: parameters: os: - linux - - storage-amplify_e2e_tests_pkg_linux: + - storage-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11857,7 +11728,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11867,7 +11737,7 @@ workflows: parameters: os: - linux - - configure-project-amplify_e2e_tests_pkg_linux: + - configure-project-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11877,7 +11747,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11888,7 +11757,7 @@ workflows: os: - linux - windows - - iam-permissions-boundary-amplify_e2e_tests_pkg_linux: + - iam-permissions-boundary-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11898,7 +11767,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11909,7 +11777,7 @@ workflows: os: - linux - windows - - init-special-case-amplify_e2e_tests_pkg_linux: + - init-special-case-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11919,7 +11787,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11930,7 +11797,7 @@ workflows: os: - linux - windows - - schema-data-access-patterns-amplify_e2e_tests_pkg_linux: + - schema-data-access-patterns-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11940,7 +11807,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11950,7 +11816,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-2-amplify_e2e_tests_pkg_linux: + - schema-iterative-update-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11960,7 +11826,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11970,7 +11835,7 @@ workflows: parameters: os: - linux - - schema-auth-10-amplify_e2e_tests_pkg_linux: + - schema-auth-10-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -11980,7 +11845,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -11990,7 +11854,7 @@ workflows: parameters: os: - linux - - delete-amplify_e2e_tests_pkg_linux: + - delete-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12000,7 +11864,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12010,7 +11873,7 @@ workflows: parameters: os: - linux - - schema-auth-8-amplify_e2e_tests_pkg_linux: + - schema-auth-8-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12020,7 +11883,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12030,7 +11892,7 @@ workflows: parameters: os: - linux - - import_dynamodb_1-amplify_e2e_tests_pkg_linux: + - import_dynamodb_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12040,7 +11902,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12050,7 +11911,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration2-amplify_e2e_tests_pkg_linux: + - migration-api-key-migration2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12060,7 +11921,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12070,7 +11930,7 @@ workflows: parameters: os: - linux - - schema-connection-amplify_e2e_tests_pkg_linux: + - schema-connection-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12080,7 +11940,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12091,7 +11950,7 @@ workflows: os: - linux - windows - - api_2-amplify_e2e_tests_pkg_linux: + - api_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12101,7 +11960,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12111,7 +11969,7 @@ workflows: parameters: os: - linux - - container-hosting-amplify_e2e_tests_pkg_linux: + - container-hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12121,7 +11979,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12132,7 +11989,7 @@ workflows: os: - linux - windows - - layer-2-amplify_e2e_tests_pkg_linux: + - layer-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12142,7 +11999,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12152,7 +12008,7 @@ workflows: parameters: os: - linux - - datastore-modelgen-amplify_e2e_tests_pkg_linux: + - datastore-modelgen-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12162,7 +12018,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12172,7 +12027,7 @@ workflows: parameters: os: - linux - - containers-api-amplify_e2e_tests_pkg_linux: + - containers-api-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12182,7 +12037,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12193,7 +12047,7 @@ workflows: os: - linux - windows - - schema-key-amplify_e2e_tests_pkg_linux: + - schema-key-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12203,7 +12057,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12213,7 +12066,7 @@ workflows: parameters: os: - linux - - function_2-amplify_e2e_tests_pkg_linux: + - function_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12223,7 +12076,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12233,7 +12085,7 @@ workflows: parameters: os: - linux - - schema-searchable-amplify_e2e_tests_pkg_linux: + - schema-searchable-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12243,7 +12095,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12254,7 +12105,7 @@ workflows: os: - linux - windows - - schema-iterative-rollback-1-amplify_e2e_tests_pkg_linux: + - schema-iterative-rollback-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12264,7 +12115,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12274,7 +12124,7 @@ workflows: parameters: os: - linux - - function_1-amplify_e2e_tests_pkg_linux: + - function_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12284,7 +12134,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12294,7 +12143,7 @@ workflows: parameters: os: - linux - - schema-auth-6-amplify_e2e_tests_pkg_linux: + - schema-auth-6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12304,7 +12153,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12314,7 +12162,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-4-amplify_e2e_tests_pkg_linux: + - schema-iterative-update-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12324,7 +12172,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12334,7 +12181,7 @@ workflows: parameters: os: - linux - - frontend_config_drift-amplify_e2e_tests_pkg_linux: + - frontend_config_drift-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12344,7 +12191,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12355,7 +12201,7 @@ workflows: os: - linux - windows - - migration-node-function-amplify_e2e_tests_pkg_linux: + - migration-node-function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12365,7 +12211,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12375,7 +12220,7 @@ workflows: parameters: os: - linux - - amplify-configure-amplify_e2e_tests_pkg_linux: + - amplify-configure-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12385,7 +12230,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12396,7 +12240,7 @@ workflows: os: - linux - windows - - schema-predictions-amplify_e2e_tests_pkg_linux: + - schema-predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12406,7 +12250,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12417,7 +12260,7 @@ workflows: os: - linux - windows - - predictions-amplify_e2e_tests_pkg_linux: + - predictions-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12427,7 +12270,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12437,7 +12279,7 @@ workflows: parameters: os: - linux - - auth_1-amplify_e2e_tests_pkg_linux: + - auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12447,7 +12289,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12457,7 +12298,7 @@ workflows: parameters: os: - linux - - auth_3-amplify_e2e_tests_pkg_linux: + - auth_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12467,7 +12308,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12477,7 +12317,7 @@ workflows: parameters: os: - linux - - schema-auth-4-amplify_e2e_tests_pkg_linux: + - schema-auth-4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12487,7 +12327,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12497,7 +12336,7 @@ workflows: parameters: os: - linux - - schema-iterative-rollback-2-amplify_e2e_tests_pkg_linux: + - schema-iterative-rollback-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12507,7 +12346,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12517,7 +12355,7 @@ workflows: parameters: os: - linux - - schema-auth-1-amplify_e2e_tests_pkg_linux: + - schema-auth-1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12527,7 +12365,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12537,7 +12374,7 @@ workflows: parameters: os: - linux - - schema-iterative-update-3-amplify_e2e_tests_pkg_linux: + - schema-iterative-update-3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12547,7 +12384,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12557,7 +12393,7 @@ workflows: parameters: os: - linux - - function_5-amplify_e2e_tests_pkg_linux: + - function_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12567,7 +12403,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12577,7 +12412,7 @@ workflows: parameters: os: - linux - - pull-amplify_e2e_tests_pkg_linux: + - pull-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12587,7 +12422,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12597,7 +12431,7 @@ workflows: parameters: os: - linux - - init-amplify_e2e_tests_pkg_linux: + - init-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12607,7 +12441,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12618,7 +12451,7 @@ workflows: os: - linux - windows - - amplify-app-amplify_e2e_tests_pkg_linux: + - amplify-app-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12628,7 +12461,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12638,7 +12470,7 @@ workflows: parameters: os: - linux - - hostingPROD-amplify_e2e_tests_pkg_linux: + - hostingPROD-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12648,7 +12480,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12658,7 +12489,7 @@ workflows: parameters: os: - linux - - geo-add-amplify_e2e_tests_pkg_linux: + - geo-add-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12668,7 +12499,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12679,7 +12509,7 @@ workflows: os: - linux - windows - - auth_5-amplify_e2e_tests_pkg_linux: + - auth_5-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12689,7 +12519,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12700,7 +12529,7 @@ workflows: os: - linux - windows - - layer-amplify_e2e_tests_pkg_linux: + - layer-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12710,7 +12539,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12720,7 +12548,7 @@ workflows: parameters: os: - linux - - api_3-amplify_e2e_tests_pkg_linux: + - api_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12730,7 +12558,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12740,7 +12567,7 @@ workflows: parameters: os: - linux - - env-amplify_e2e_tests_pkg_linux: + - env-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12750,7 +12577,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12760,7 +12586,7 @@ workflows: parameters: os: - linux - - function_4-amplify_e2e_tests_pkg_linux: + - function_4-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12770,7 +12596,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12780,7 +12605,7 @@ workflows: parameters: os: - linux - - schema-auth-2-amplify_e2e_tests_pkg_linux: + - schema-auth-2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12790,7 +12615,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12800,7 +12624,7 @@ workflows: parameters: os: - linux - - function_6-amplify_e2e_tests_pkg_linux: + - function_6-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12810,7 +12634,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12820,7 +12643,7 @@ workflows: parameters: os: - linux - - s3-sse-amplify_e2e_tests_pkg_linux: + - s3-sse-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12830,7 +12653,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12841,7 +12663,7 @@ workflows: os: - linux - windows - - tags-amplify_e2e_tests_pkg_linux: + - tags-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12851,7 +12673,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12862,7 +12683,7 @@ workflows: os: - linux - windows - - hosting-amplify_e2e_tests_pkg_linux: + - hosting-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12872,7 +12693,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12882,7 +12702,7 @@ workflows: parameters: os: - linux - - geo-update-amplify_e2e_tests_pkg_linux: + - geo-update-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12892,7 +12712,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12903,7 +12722,7 @@ workflows: os: - linux - windows - - function_3-amplify_e2e_tests_pkg_linux: + - function_3-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12913,7 +12732,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12923,7 +12741,7 @@ workflows: parameters: os: - linux - - migration-api-key-migration1-amplify_e2e_tests_pkg_linux: + - migration-api-key-migration1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12933,7 +12751,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12943,7 +12760,7 @@ workflows: parameters: os: - linux - - import_auth_1-amplify_e2e_tests_pkg_linux: + - import_auth_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12953,7 +12770,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12963,7 +12779,7 @@ workflows: parameters: os: - linux - - auth_2-amplify_e2e_tests_pkg_linux: + - auth_2-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12973,7 +12789,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -12983,7 +12798,7 @@ workflows: parameters: os: - linux - - schema-function-amplify_e2e_tests_pkg_linux: + - schema-function-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -12993,7 +12808,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -13003,7 +12817,7 @@ workflows: parameters: os: - linux - - api_1-amplify_e2e_tests_pkg_linux: + - api_1-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull - clean_e2e_resources @@ -13013,7 +12827,6 @@ workflows: branches: only: - master - - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: diff --git a/packages/amplify-e2e-core/src/index.ts b/packages/amplify-e2e-core/src/index.ts index 7d70b57c17a..963e5e0e4b9 100644 --- a/packages/amplify-e2e-core/src/index.ts +++ b/packages/amplify-e2e-core/src/index.ts @@ -71,13 +71,6 @@ export function injectSessionToken(profileName: string) { fs.writeFileSync(pathManager.getAWSCredentialsFilePath(), ini.stringify(credentialsContents)); } -export function injectRegion(profileName: string) { - const credentialsContents = ini.parse(fs.readFileSync(pathManager.getAWSConfigFilePath()).toString()); - credentialsContents[`profile ${profileName}`] = credentialsContents[`profile ${profileName}`] || {}; - credentialsContents[`profile ${profileName}`].region = process.env.CLI_REGION; - fs.writeFileSync(pathManager.getAWSConfigFilePath(), ini.stringify(credentialsContents)); -} - export function npmInstall(cwd: string) { spawnSync('npm', ['install'], { cwd }); } diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index afbd26af863..c37b412a050 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -67,7 +67,7 @@ const WINDOWS_TEST_FAILURES = [ 'schema-iterative-update-locking-amplify_e2e_tests', 'schema-iterative-rollback-1-amplify_e2e_tests', 'schema-iterative-rollback-2-amplify_e2e_tests', - 'schema-key-amplify_e2e_tests_pkg_linux', + 'schema-key-amplify_e2e_tests_pkg', 'schema-model-amplify_e2e_tests', 'storage-amplify_e2e_tests', ]; @@ -88,21 +88,13 @@ const AWS_REGIONS_TO_RUN_TESTS = [ const FORCE_US_WEST_2 = ['interactions-amplify_e2e_tests']; const USE_PARENT_ACCOUNT = [ - 'auth_2-amplify_e2e_tests', - 'auth_3-amplify_e2e_tests', - 'auth_5-amplify_e2e_tests', - 'auth_6-amplify_e2e_tests', - 'env-amplify_e2e_tests_pkg_linux', - 'migration-node-function-amplify_e2e_tests', - 'schema-function-amplify_e2e_tests', - 'schema-iterative-update-locking-amplify_e2e_tests', - 'migration-api-key-migration2-amplify_e2e_tests', - 'api_1-amplify_e2e_tests', 'api_2-amplify_e2e_tests', - 'import_s3_1-amplify_e2e_tests', + 'api_1-amplify_e2e_tests', + 'auth_2-amplify_e2e_tests', 'import_dynamodb_1-amplify_e2e_tests', + 'import_s3_1-amplify_e2e_tests', + 'migration-api-key-migration2-amplify_e2e_tests', 'storage-amplify_e2e_tests', - 'function_2-amplify_e2e_tests', ]; // This array needs to be update periodically when new tests suites get added @@ -315,7 +307,7 @@ function splitTests( matrix: { parameters: { os: - WINDOWS_TEST_FAILURES.some(failingJob => newJobName.startsWith(failingJob)) || !newJobName.endsWith('_pkg_linux') + WINDOWS_TEST_FAILURES.some(failingJob => newJobName.startsWith(failingJob)) || !newJobName.endsWith('_pkg') ? ['linux'] : ['linux', 'windows'], }, @@ -437,7 +429,7 @@ function main(): void { ); const splitPkgTests = splitTests( splitNodeTests, - 'amplify_e2e_tests_pkg_linux', + 'amplify_e2e_tests_pkg', 'build_test_deploy', join(process.cwd(), 'packages', 'amplify-e2e-tests'), CONCURRENCY, From 610c4c74d112307c7d0e3663804b621eca619890 Mon Sep 17 00:00:00 2001 From: John Corser Date: Mon, 27 Sep 2021 16:41:55 -0400 Subject: [PATCH 7/9] chore: remove auth_5 and auth_6 with note --- scripts/split-e2e-tests.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index c37b412a050..7b953706b45 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -20,6 +20,11 @@ const WINDOWS_TEST_FAILURES = [ 'auth_1-amplify_e2e_tests', 'auth_2-amplify_e2e_tests', 'auth_3-amplify_e2e_tests', + // Auth tests are failing because + // us-east-1 region is not allowed in e2e test account + // and `singleSelect` for region is not working properly in windows + 'auth_5-amplify_e2e_tests', + 'auth_6-amplify_e2e_tests', 'datastore-modelgen-amplify_e2e_tests', 'delete-amplify_e2e_tests', 'env-amplify_e2e_tests', From dbfc625afb69e97c6aada3191da8d249728b9666 Mon Sep 17 00:00:00 2001 From: John Corser Date: Mon, 27 Sep 2021 16:47:58 -0400 Subject: [PATCH 8/9] chore: remove misleading comment --- .circleci/local_publish_helpers.sh | 4 +--- scripts/split-e2e-tests.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 038601506ce..9fcbeaaf191 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -55,13 +55,11 @@ function setSudoNpmRegistryUrlToLocal { function setAwsAccountCredentials { if [[ "$OSTYPE" == "win32" ]]; then - # windows, do nothing echo "Using parent account credentials for OSTYPE $OSTYPE" elif [[ "$OSTYPE" == "cygwin" ]]; then - # windows, do nothing echo "Using parent account credentials for OSTYPE $OSTYPE" elif [[ "$OSTYPE" == "msys" ]]; then - # windows, do nothing + # windows provided by circleci has this OSTYPE if [ -z "$USE_PARENT_ACCOUNT" ]; then export AWS_PAGER="" export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 7b953706b45..35ff42a8228 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -21,7 +21,7 @@ const WINDOWS_TEST_FAILURES = [ 'auth_2-amplify_e2e_tests', 'auth_3-amplify_e2e_tests', // Auth tests are failing because - // us-east-1 region is not allowed in e2e test account + // us-east-1 region is not allowed in parent e2e test account // and `singleSelect` for region is not working properly in windows 'auth_5-amplify_e2e_tests', 'auth_6-amplify_e2e_tests', From f8e7c3049fbd34f42d49f61a6660e4297de055da Mon Sep 17 00:00:00 2001 From: John Corser Date: Tue, 28 Sep 2021 12:03:18 -0400 Subject: [PATCH 9/9] ci: increase parallelism --- .circleci/config.base.yml | 14 +- .circleci/config.yml | 498 +++++++++++++++++++---------- .circleci/local_publish_helpers.sh | 60 ++-- scripts/split-e2e-tests.ts | 8 + 4 files changed, 378 insertions(+), 202 deletions(-) diff --git a/.circleci/config.base.yml b/.circleci/config.base.yml index ac5de237fda..8d210f855ce 100644 --- a/.circleci/config.base.yml +++ b/.circleci/config.base.yml @@ -752,6 +752,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -765,6 +766,7 @@ workflows: branches: only: - master + - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ @@ -776,6 +778,7 @@ workflows: branches: only: - master + - win-e2e - beta - release - /tagged-release\/.*/ @@ -793,6 +796,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - amplify_e2e_tests: @@ -807,11 +811,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries - done_with_node_e2e_tests: requires: - amplify_e2e_tests @@ -825,10 +829,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries - done_with_pkg_e2e_tests: requires: @@ -843,6 +847,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -858,6 +863,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -873,6 +879,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -888,6 +895,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -903,6 +911,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -973,6 +982,7 @@ workflows: only: - release - master + - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ diff --git a/.circleci/config.yml b/.circleci/config.yml index a457c997e11..462f9afbefd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1006,6 +1006,8 @@ jobs: environment: TEST_SUITE: src/__tests__/api_4.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1064,6 +1066,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_6.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify configure-project-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1122,6 +1126,8 @@ jobs: environment: TEST_SUITE: src/__tests__/configure-project.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify container-hosting-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1180,6 +1186,8 @@ jobs: environment: TEST_SUITE: src/__tests__/container-hosting.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify frontend_config_drift-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1238,6 +1246,8 @@ jobs: environment: TEST_SUITE: src/__tests__/frontend_config_drift.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1296,6 +1306,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_5.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1354,6 +1366,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_6.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_7-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1412,6 +1426,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_7.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify hooks-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1470,6 +1486,8 @@ jobs: environment: TEST_SUITE: src/__tests__/hooks.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify iam-permissions-boundary-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1528,6 +1546,8 @@ jobs: environment: TEST_SUITE: src/__tests__/iam-permissions-boundary.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify layer-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1586,6 +1606,8 @@ jobs: environment: TEST_SUITE: src/__tests__/layer-2.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-node-function-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1644,6 +1666,8 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/node.function.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify pull-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1702,6 +1726,8 @@ jobs: environment: TEST_SUITE: src/__tests__/pull.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify s3-sse-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1760,6 +1786,8 @@ jobs: environment: TEST_SUITE: src/__tests__/s3-sse.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-locking-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1818,6 +1846,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-locking.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify plugin-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1876,6 +1906,8 @@ jobs: environment: TEST_SUITE: src/__tests__/plugin.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify init-special-case-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1934,6 +1966,8 @@ jobs: environment: TEST_SUITE: src/__tests__/init-special-case.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify datastore-modelgen-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -1992,6 +2026,8 @@ jobs: environment: TEST_SUITE: src/__tests__/datastore-modelgen.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify amplify-configure-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2050,6 +2086,8 @@ jobs: environment: TEST_SUITE: src/__tests__/amplify-configure.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify init-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2108,6 +2146,8 @@ jobs: environment: TEST_SUITE: src/__tests__/init.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify tags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2166,6 +2206,8 @@ jobs: environment: TEST_SUITE: src/__tests__/tags.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify notifications-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2224,6 +2266,8 @@ jobs: environment: TEST_SUITE: src/__tests__/notifications.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-versioned-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2282,6 +2326,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-versioned.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-data-access-patterns-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2340,6 +2386,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-data-access-patterns.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify interactions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2398,6 +2446,8 @@ jobs: environment: TEST_SUITE: src/__tests__/interactions.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-predictions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2456,6 +2506,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-predictions.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify amplify-app-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2514,6 +2566,8 @@ jobs: environment: TEST_SUITE: src/__tests__/amplify-app.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify hosting-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2572,6 +2626,8 @@ jobs: environment: TEST_SUITE: src/__tests__/hosting.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify analytics-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2630,6 +2686,8 @@ jobs: environment: TEST_SUITE: src/__tests__/analytics.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify feature-flags-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2688,6 +2746,8 @@ jobs: environment: TEST_SUITE: src/__tests__/feature-flags.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2746,6 +2806,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-2.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify containers-api-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2804,6 +2866,8 @@ jobs: environment: TEST_SUITE: src/__tests__/containers-api.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify predictions-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2862,6 +2926,8 @@ jobs: environment: TEST_SUITE: src/__tests__/predictions.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify hostingPROD-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2920,6 +2986,8 @@ jobs: environment: TEST_SUITE: src/__tests__/hostingPROD.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify geo-add-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -2978,6 +3046,8 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-add.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify geo-update-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3036,6 +3106,8 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-update.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify geo-remove-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3094,6 +3166,8 @@ jobs: environment: TEST_SUITE: src/__tests__/geo-remove.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-10-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3152,6 +3226,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-10.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-key-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3210,6 +3286,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-key.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3268,6 +3346,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_1.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3326,6 +3406,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_5.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3384,6 +3466,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_3.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3442,6 +3526,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-1.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3500,6 +3586,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-3.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify delete-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3558,6 +3646,8 @@ jobs: environment: TEST_SUITE: src/__tests__/delete.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3616,6 +3706,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_2.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3674,6 +3766,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_3.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify layer-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3732,6 +3826,8 @@ jobs: environment: TEST_SUITE: src/__tests__/layer.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-api-key-migration1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3790,6 +3886,8 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.key.migration1.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3848,6 +3946,8 @@ jobs: environment: TEST_SUITE: src/__tests__/auth_4.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-7-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3906,6 +4006,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-7.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-8-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -3964,6 +4066,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-8.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-searchable-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4022,6 +4126,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-searchable.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4080,6 +4186,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-4.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4138,6 +4246,8 @@ jobs: environment: TEST_SUITE: src/__tests__/api_3.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_auth_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4196,6 +4306,8 @@ jobs: environment: TEST_SUITE: src/__tests__/import_auth_1.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4254,6 +4366,8 @@ jobs: environment: TEST_SUITE: src/__tests__/import_auth_2.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_s3_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4313,6 +4427,8 @@ jobs: TEST_SUITE: src/__tests__/import_s3_1.test.ts CLI_REGION: us-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify import_dynamodb_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4372,6 +4488,8 @@ jobs: TEST_SUITE: src/__tests__/import_dynamodb_1.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-rollback-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4430,6 +4548,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-1.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-rollback-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4488,6 +4608,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-rollback-2.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify env-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4546,6 +4668,8 @@ jobs: environment: TEST_SUITE: src/__tests__/env.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify auth_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4605,6 +4729,8 @@ jobs: TEST_SUITE: src/__tests__/auth_2.test.ts CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-9-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4663,6 +4789,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-9.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-11-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4721,6 +4849,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-11.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-api-key-migration2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4780,6 +4910,8 @@ jobs: TEST_SUITE: src/__tests__/migration/api.key.migration2.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4838,6 +4970,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_1.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4896,6 +5030,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-1.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify function_4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -4954,6 +5090,8 @@ jobs: environment: TEST_SUITE: src/__tests__/function_4.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-function-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5012,6 +5150,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-function.test.ts CLI_REGION: ap-southeast-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-model-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5070,6 +5210,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-model.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify migration-api-connection-migration-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5128,6 +5270,8 @@ jobs: environment: TEST_SUITE: src/__tests__/migration/api.connection.migration.test.ts CLI_REGION: us-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-connection-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5186,6 +5330,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-connection.test.ts CLI_REGION: eu-west-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-6-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5244,6 +5390,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-6.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-3-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5302,6 +5450,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-3.test.ts CLI_REGION: ap-northeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5360,6 +5510,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-2.test.ts CLI_REGION: ap-southeast-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_1-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5419,6 +5571,8 @@ jobs: TEST_SUITE: src/__tests__/api_1.test.ts CLI_REGION: ap-southeast-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-auth-5-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5477,6 +5631,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-auth-5.test.ts CLI_REGION: us-east-2 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify storage-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5536,6 +5692,8 @@ jobs: TEST_SUITE: src/__tests__/storage.test.ts CLI_REGION: us-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_2-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5595,6 +5753,8 @@ jobs: TEST_SUITE: src/__tests__/api_2.test.ts CLI_REGION: eu-west-2 USE_PARENT_ACCOUNT: 1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify schema-iterative-update-4-amplify_e2e_tests: working_directory: ~/repo parameters: @@ -5653,6 +5813,8 @@ jobs: environment: TEST_SUITE: src/__tests__/schema-iterative-update-4.test.ts CLI_REGION: eu-central-1 + AMPLIFY_DIR: /home/circleci/repo/packages/amplify-cli/bin + AMPLIFY_PATH: /home/circleci/repo/packages/amplify-cli/bin/amplify api_4-amplify_e2e_tests_pkg: parameters: os: @@ -8720,6 +8882,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8733,6 +8896,7 @@ workflows: branches: only: - master + - win-e2e - beta - /tagged-release\/.*/ - /run-e2e\/*./ @@ -8744,6 +8908,7 @@ workflows: branches: only: - master + - win-e2e - beta - release - /tagged-release\/.*/ @@ -8761,6 +8926,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ - done_with_node_e2e_tests: @@ -8939,6 +9105,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8954,6 +9121,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8969,6 +9137,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8984,6 +9153,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -8999,6 +9169,7 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: @@ -9074,6 +9245,7 @@ workflows: only: - release - master + - win-e2e - beta - /tagged-release\/.*/ - /tagged-release-without-e2e-tests\/.*/ @@ -9103,11 +9275,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9130,11 +9302,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9157,11 +9329,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9184,11 +9356,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9211,11 +9383,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9238,11 +9410,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9265,11 +9437,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9292,11 +9464,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9319,11 +9491,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9346,11 +9518,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9373,11 +9545,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9400,11 +9572,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9427,11 +9599,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9454,11 +9626,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9481,11 +9653,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9508,11 +9680,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9535,11 +9707,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9562,11 +9734,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9589,11 +9761,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9616,11 +9788,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9643,11 +9815,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9670,11 +9842,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9697,11 +9869,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9724,11 +9896,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9751,11 +9923,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9778,11 +9950,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9805,11 +9977,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9832,11 +10004,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9859,11 +10031,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9886,11 +10058,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9913,11 +10085,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9940,11 +10112,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9967,11 +10139,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -9994,11 +10166,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10021,11 +10193,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10048,11 +10220,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10075,11 +10247,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10102,11 +10274,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10129,11 +10301,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10156,11 +10328,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10183,11 +10355,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10210,11 +10382,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10237,11 +10409,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10264,11 +10436,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10291,11 +10463,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10318,11 +10490,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10345,11 +10517,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10372,11 +10544,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10399,11 +10571,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10426,11 +10598,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10453,11 +10625,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10480,11 +10652,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10507,11 +10679,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10534,11 +10706,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10561,11 +10733,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10588,11 +10760,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10615,11 +10787,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10642,11 +10814,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10669,11 +10841,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10696,11 +10868,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10723,11 +10895,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10750,11 +10922,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10777,11 +10949,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10804,11 +10976,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10831,11 +11003,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10858,11 +11030,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10885,11 +11057,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10912,11 +11084,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10939,11 +11111,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10966,11 +11138,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -10993,11 +11165,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11020,11 +11192,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11047,11 +11219,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11074,11 +11246,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11101,11 +11273,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11128,11 +11300,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11155,11 +11327,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11182,11 +11354,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11209,11 +11381,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11236,11 +11408,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11263,11 +11435,11 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - publish_to_local_registry - - build_pkg_binaries matrix: parameters: os: @@ -11282,10 +11454,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11301,10 +11473,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11320,10 +11492,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11339,10 +11511,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11359,10 +11531,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11379,10 +11551,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11399,10 +11571,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11418,10 +11590,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11438,10 +11610,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11457,10 +11629,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11476,10 +11648,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11495,10 +11667,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11514,16 +11686,15 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: os: - linux - - windows - hooks-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -11534,10 +11705,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11554,10 +11725,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11574,10 +11745,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11594,10 +11765,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11614,10 +11785,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11633,10 +11804,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11652,10 +11823,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11671,10 +11842,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11690,10 +11861,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11709,10 +11880,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11728,10 +11899,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11747,10 +11918,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11767,10 +11938,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11787,10 +11958,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11807,10 +11978,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11826,10 +11997,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11845,10 +12016,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11864,10 +12035,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11883,10 +12054,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11902,10 +12073,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11921,10 +12092,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11940,10 +12111,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11960,10 +12131,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11979,10 +12150,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -11999,10 +12170,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12018,10 +12189,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12037,10 +12208,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12057,10 +12228,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12076,10 +12247,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12095,10 +12266,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12115,10 +12286,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12134,10 +12305,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12153,10 +12324,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12172,10 +12343,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12191,10 +12362,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12211,10 +12382,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12230,10 +12401,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12250,10 +12421,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12270,10 +12441,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12289,10 +12460,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12308,10 +12479,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12327,10 +12498,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12346,10 +12517,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12365,10 +12536,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12384,10 +12555,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12403,10 +12574,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12422,10 +12593,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12441,10 +12612,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12461,10 +12632,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12480,10 +12651,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12499,10 +12670,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12519,16 +12690,15 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: os: - linux - - windows - layer-amplify_e2e_tests_pkg: context: - amplify-ecr-image-pull @@ -12539,10 +12709,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12558,10 +12728,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12577,10 +12747,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12596,10 +12766,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12615,10 +12785,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12634,10 +12804,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12653,10 +12823,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12673,10 +12843,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12693,10 +12863,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12712,10 +12882,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12732,10 +12902,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12751,10 +12921,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12770,10 +12940,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12789,10 +12959,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12808,10 +12978,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: @@ -12827,10 +12997,10 @@ workflows: branches: only: - master + - win-e2e - /tagged-release\/.*/ - /run-e2e\/*./ requires: - - done_with_node_e2e_tests - build_pkg_binaries matrix: parameters: diff --git a/.circleci/local_publish_helpers.sh b/.circleci/local_publish_helpers.sh index 9fcbeaaf191..a99bbef3483 100644 --- a/.circleci/local_publish_helpers.sh +++ b/.circleci/local_publish_helpers.sh @@ -1,4 +1,5 @@ #!/bin/bash +export ORGANIZATION_SIZE=$(aws organizations list-accounts | jq '.Accounts | length') custom_registry_url=http://localhost:4873 default_verdaccio_package=verdaccio@5.1.2 @@ -53,45 +54,32 @@ function setSudoNpmRegistryUrlToLocal { sudo yarn config set registry "$custom_registry_url" } -function setAwsAccountCredentials { - if [[ "$OSTYPE" == "win32" ]]; then - echo "Using parent account credentials for OSTYPE $OSTYPE" - elif [[ "$OSTYPE" == "cygwin" ]]; then - echo "Using parent account credentials for OSTYPE $OSTYPE" - elif [[ "$OSTYPE" == "msys" ]]; then - # windows provided by circleci has this OSTYPE - if [ -z "$USE_PARENT_ACCOUNT" ]; then - export AWS_PAGER="" - export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) - if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then - echo "Unable to assume child account role. Falling back to parent AWS account" - else - echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" - export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") - export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") - export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") - fi +function useChildAccountCredentials { + if [ -z "$USE_PARENT_ACCOUNT" ]; then + export AWS_PAGER="" + export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % $ORGANIZATION_SIZE))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) + if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then + echo "Unable to assume child account role. Falling back to parent AWS account" else - echo "Using parent account credentials." + echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" + export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") + export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") + export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") fi + else + echo "Using parent account credentials." + fi +} + +function setAwsAccountCredentials { + if [[ "$OSTYPE" == "msys" ]]; then + # windows provided by circleci has this OSTYPE + useChildAccountCredentials else echo "OSTYPE is $OSTYPE" - if [ -z "$USE_PARENT_ACCOUNT" ]; then - curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" - unzip -o awscliv2.zip >/dev/null - export PATH=$PATH:$(pwd)/aws/dist - export AWS_PAGER="" - export CREDS=$(aws sts assume-role --role-arn arn:aws:iam::$(aws organizations list-accounts | jq -c -r ".Accounts [$((1 + $RANDOM % 5))].Id"):role/OrganizationAccountAccessRole --role-session-name testSession$((1 + $RANDOM % 10000)) --duration-seconds 3600) - if [ -z $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn') ]; then - echo "Unable to assume child account role. Falling back to parent AWS account" - else - echo "Using account credentials for $(echo $CREDS | jq -c -r '.AssumedRoleUser.Arn')" - export AWS_ACCESS_KEY_ID=$(echo $CREDS | jq -c -r ".Credentials.AccessKeyId") - export AWS_SECRET_ACCESS_KEY=$(echo $CREDS | jq -c -r ".Credentials.SecretAccessKey") - export AWS_SESSION_TOKEN=$(echo $CREDS | jq -c -r ".Credentials.SessionToken") - fi - else - echo "Using parent account credentials." - fi + curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" + unzip -o awscliv2.zip >/dev/null + export PATH=$PATH:$(pwd)/aws/dist + useChildAccountCredentials fi } diff --git a/scripts/split-e2e-tests.ts b/scripts/split-e2e-tests.ts index 35ff42a8228..47802cd78ee 100644 --- a/scripts/split-e2e-tests.ts +++ b/scripts/split-e2e-tests.ts @@ -272,6 +272,14 @@ function splitTests( ...(USE_PARENT_ACCOUNT.some(job => newJobName.startsWith(job)) ? { USE_PARENT_ACCOUNT: 1 } : {}), }, }; + const isPkg = newJobName.endsWith('_pkg'); + if (!isPkg) { + (newJob.environment as any) = { + ...newJob.environment, + AMPLIFY_DIR: '/home/circleci/repo/packages/amplify-cli/bin', + AMPLIFY_PATH: '/home/circleci/repo/packages/amplify-cli/bin/amplify', + } + } return { ...acc, [newJobName]: newJob }; }, {});