Skip to content

Commit c6c7b7a

Browse files
author
Dane Pilcher
authored
ci: add build e2e test for Android (#526)
1 parent 64e1ee6 commit c6c7b7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1189
-170
lines changed

.circleci/config.base.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
version: 2.1
22
orbs:
33
aws-ecr: circleci/[email protected]
4+
android: circleci/[email protected]
45
node: circleci/[email protected]
56
machine:
67
environment:
@@ -35,6 +36,15 @@ executors:
3536
AMPLIFY_DIR: /home/circleci/repo/out
3637
AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux-x64
3738

39+
a: &android-e2e-executor
40+
docker:
41+
- image: cimg/android:2022.09
42+
working_directory: ~/repo
43+
resource_class: large
44+
environment:
45+
AMPLIFY_DIR: /home/circleci/repo/out
46+
AMPLIFY_PATH: /home/circleci/repo/out/amplify-pkg-linux-x64
47+
3848
defaults: &defaults
3949
working_directory: ~/repo
4050
parameters:
@@ -203,6 +213,32 @@ jobs:
203213
- store_artifacts:
204214
path: ~/repo/packages/amplify-codegen-e2e-tests/amplify-e2e-reports
205215

216+
e2e-test-with-node-install:
217+
<<: *defaults
218+
executor: << parameters.os >>
219+
steps:
220+
- attach_workspace:
221+
at: ./
222+
- restore_cache:
223+
key: amplify-codegen-yarn-deps-{{ .Branch }}-{{ checksum "yarn.lock" }}
224+
- restore_cache:
225+
key: amplify-verdaccio-cache-{{ .Branch }}-{{ .Revision }}
226+
- node/install:
227+
install-yarn: true
228+
node-version: '16.13'
229+
- run: yarn run production-build
230+
- run: *install_cli
231+
- run:
232+
name: Run e2e tests
233+
command: |
234+
cd packages/amplify-codegen-e2e-tests
235+
yarn e2e --maxWorkers=3 $TEST_SUITE
236+
no_output_timeout: 20m
237+
- store_test_results:
238+
path: packages/amplify-codegen-e2e-tests/
239+
- store_artifacts:
240+
path: ~/repo/packages/amplify-codegen-e2e-tests/amplify-e2e-reports
241+
206242
done_with_node_e2e_tests:
207243
<<: *defaults
208244
executor: << parameters.os >>

0 commit comments

Comments
 (0)