Skip to content

Commit

Permalink
ci: add build e2e test for Android (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch committed Jan 30, 2023
1 parent 64e1ee6 commit c6c7b7a
Show file tree
Hide file tree
Showing 43 changed files with 1,189 additions and 170 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.base.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version: 2.1
orbs:
aws-ecr: circleci/aws-ecr@6.15.3
android: circleci/android@2.1.2
node: circleci/node@5.0.3
machine:
environment:
Expand Down Expand Up @@ -35,6 +36,15 @@ executors:
AMPLIFY_DIR: /home/circleci/repo/out
AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux-x64

a: &android-e2e-executor
docker:
- image: cimg/android:2022.09
working_directory: ~/repo
resource_class: large
environment:
AMPLIFY_DIR: /home/circleci/repo/out
AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux-x64

defaults: &defaults
working_directory: ~/repo
parameters:
Expand Down Expand Up @@ -203,6 +213,32 @@ jobs:
- store_artifacts:
path: ~/repo/packages/amplify-codegen-e2e-tests/amplify-e2e-reports

e2e-test-with-node-install:
<<: *defaults
executor: << parameters.os >>
steps:
- attach_workspace:
at: ./
- restore_cache:
key: amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
- restore_cache:
key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
- node/install:
install-yarn: true
node-version: '16.13'
- run: yarn run production-build
- run: *install_cli
- run:
name: Run e2e tests
command: |
cd packages/amplify-codegen-e2e-tests
yarn e2e --maxWorkers=3 $TEST_SUITE
no_output_timeout: 20m
- store_test_results:
path: packages/amplify-codegen-e2e-tests/
- store_artifacts:
path: ~/repo/packages/amplify-codegen-e2e-tests/amplify-e2e-reports

done_with_node_e2e_tests:
<<: *defaults
executor: << parameters.os >>
Expand Down
Loading

0 comments on commit c6c7b7a

Please sign in to comment.