Skip to content

Commit 8dbaba7

Browse files
authored
Merge pull request #632 from aws-amplify/main
Release Codegen Utility
2 parents 90336db + 225ad09 commit 8dbaba7

Some content is hidden

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

58 files changed

+4873
-1848
lines changed

.circleci/config.base.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ install_cli_with_local_codegen: &install_cli
5858
startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
5959
setNpmRegistryUrlToLocal
6060
changeNpmGlobalPath
61-
npm install -g @aws-amplify/cli-internal
61+
npm install -g @aws-amplify/cli-internal@cdk228withdata3
6262
amplify -v
6363
npm list --global --depth=1
6464
unsetNpmRegistryUrl
@@ -303,7 +303,7 @@ jobs:
303303
yarn clean-e2e-resources
304304
no_output_timeout: 20m
305305
- store_artifacts:
306-
path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports
306+
path: ~/repo/packages/amplify-codegen-e2e-tests/amplify-e2e-reports
307307
working_directory: ~/repo
308308

309309
verify-api-extract:

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ install_cli_with_local_codegen: &ref_3
5454
startLocalRegistry "$(pwd)/.circleci/verdaccio.yaml"
5555
setNpmRegistryUrlToLocal
5656
changeNpmGlobalPath
57-
npm install -g @aws-amplify/cli-internal
57+
npm install -g @aws-amplify/cli-internal@cdk228withdata3
5858
amplify -v
5959
npm list --global --depth=1
6060
unsetNpmRegistryUrl
@@ -306,7 +306,7 @@ jobs:
306306
yarn clean-e2e-resources
307307
no_output_timeout: 20m
308308
- store_artifacts:
309-
path: ~/repo/packages/amplify-e2e-tests/amplify-e2e-reports
309+
path: ~/repo/packages/amplify-codegen-e2e-tests/amplify-e2e-reports
310310
verify-api-extract:
311311
docker: *ref_4
312312
working_directory: ~/repo

.codebuild/build_linux.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
phases:
5+
build:
6+
commands:
7+
- source ./shared-scripts.sh && _buildLinux
8+
artifacts:
9+
files:
10+
- 'shared-scripts.sh'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
variables:
5+
CI: true
6+
CODEBUILD: true
7+
8+
phases:
9+
build:
10+
commands:
11+
- source ./shared-scripts.sh && _cleanupE2EResources

.codebuild/cleanup_workflow.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
variables:
5+
CI: true
6+
CODEBUILD: true
7+
8+
phases:
9+
build:
10+
commands:
11+
- yarn production-build
12+
- cd packages/amplify-codegen-e2e-tests && yarn clean-cb-e2e-resources

.codebuild/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
git-credential-helper: yes
5+
phases:
6+
build:
7+
commands:
8+
- source ./shared-scripts.sh && _deploy

.codebuild/e2e_workflow.yml

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# auto generated file. DO NOT EDIT manually
2+
version: 0.2
3+
env:
4+
shell: bash
5+
compute-type: BUILD_GENERAL1_LARGE
6+
batch:
7+
fast-fail: false
8+
build-graph:
9+
- identifier: build_linux
10+
buildspec: .codebuild/build_linux.yml
11+
env:
12+
compute-type: BUILD_GENERAL1_LARGE
13+
- identifier: test
14+
buildspec: .codebuild/test.yml
15+
env:
16+
compute-type: BUILD_GENERAL1_LARGE
17+
depend-on:
18+
- build_linux
19+
- identifier: verify_api_extract
20+
buildspec: .codebuild/verify_api_extract.yml
21+
env:
22+
compute-type: BUILD_GENERAL1_MEDIUM
23+
depend-on:
24+
- build_linux
25+
- identifier: publish_to_local_registry
26+
buildspec: .codebuild/publish_to_local_registry.yml
27+
env:
28+
compute-type: BUILD_GENERAL1_MEDIUM
29+
depend-on:
30+
- build_linux
31+
- identifier: build_app_swift
32+
buildspec: .codebuild/run_ios_modelgen_e2e_test.yml
33+
env:
34+
compute-type: BUILD_GENERAL1_LARGE
35+
variables:
36+
TEST_SUITE: src/__tests__/build-app-swift.test.ts
37+
CLI_REGION: us-east-2
38+
depend-on:
39+
- publish_to_local_registry
40+
- identifier: >-
41+
add_codegen_ios_configure_codegen_android_configure_codegen_js_graphql_codegen_android
42+
buildspec: .codebuild/run_e2e_tests.yml
43+
env:
44+
compute-type: BUILD_GENERAL1_LARGE
45+
variables:
46+
TEST_SUITE: >-
47+
src/__tests__/add-codegen-ios.test.ts|src/__tests__/configure-codegen-android.test.ts|src/__tests__/configure-codegen-js.test.ts|src/__tests__/graphql-codegen-android.test.ts
48+
CLI_REGION: us-east-1
49+
depend-on:
50+
- publish_to_local_registry
51+
- identifier: >-
52+
graphql_codegen_js_remove_codegen_android_remove_codegen_ios_add_codegen_android
53+
buildspec: .codebuild/run_e2e_tests.yml
54+
env:
55+
compute-type: BUILD_GENERAL1_LARGE
56+
variables:
57+
TEST_SUITE: >-
58+
src/__tests__/graphql-codegen-js.test.ts|src/__tests__/remove-codegen-android.test.ts|src/__tests__/remove-codegen-ios.test.ts|src/__tests__/add-codegen-android.test.ts
59+
CLI_REGION: us-east-2
60+
depend-on:
61+
- publish_to_local_registry
62+
- identifier: >-
63+
configure_codegen_ios_datastore_modelgen_android_datastore_modelgen_js_feature_flags
64+
buildspec: .codebuild/run_e2e_tests.yml
65+
env:
66+
compute-type: BUILD_GENERAL1_LARGE
67+
variables:
68+
TEST_SUITE: >-
69+
src/__tests__/configure-codegen-ios.test.ts|src/__tests__/datastore-modelgen-android.test.ts|src/__tests__/datastore-modelgen-js.test.ts|src/__tests__/feature-flags.test.ts
70+
CLI_REGION: us-west-2
71+
depend-on:
72+
- publish_to_local_registry
73+
- identifier: >-
74+
graphql_codegen_ios_add_codegen_js_datastore_modelgen_ios_remove_codegen_js
75+
buildspec: .codebuild/run_e2e_tests.yml
76+
env:
77+
compute-type: BUILD_GENERAL1_LARGE
78+
variables:
79+
TEST_SUITE: >-
80+
src/__tests__/graphql-codegen-ios.test.ts|src/__tests__/add-codegen-js.test.ts|src/__tests__/datastore-modelgen-ios.test.ts|src/__tests__/remove-codegen-js.test.ts
81+
CLI_REGION: eu-west-2
82+
depend-on:
83+
- publish_to_local_registry
84+
- identifier: >-
85+
datastore_modelgen_flutter_env_codegen_model_introspection_codegen_pull_codegen
86+
buildspec: .codebuild/run_e2e_tests.yml
87+
env:
88+
compute-type: BUILD_GENERAL1_LARGE
89+
variables:
90+
TEST_SUITE: >-
91+
src/__tests__/datastore-modelgen-flutter.test.ts|src/__tests__/env-codegen.test.ts|src/__tests__/model-introspection-codegen.test.ts|src/__tests__/pull-codegen.test.ts
92+
CLI_REGION: eu-central-1
93+
depend-on:
94+
- publish_to_local_registry
95+
- identifier: >-
96+
push_codegen_ios_push_codegen_android_graphql_documents_generator_push_codegen_js
97+
buildspec: .codebuild/run_e2e_tests.yml
98+
env:
99+
compute-type: BUILD_GENERAL1_LARGE
100+
variables:
101+
TEST_SUITE: >-
102+
src/__tests__/push-codegen-ios.test.ts|src/__tests__/push-codegen-android.test.ts|src/__tests__/graphql-documents-generator.test.ts|src/__tests__/push-codegen-js.test.ts
103+
CLI_REGION: ap-southeast-1
104+
depend-on:
105+
- publish_to_local_registry
106+
- identifier: build_app_ts
107+
buildspec: .codebuild/run_e2e_tests.yml
108+
env:
109+
compute-type: BUILD_GENERAL1_LARGE
110+
variables:
111+
TEST_SUITE: src/__tests__/build-app-ts.test.ts
112+
CLI_REGION: ap-southeast-2
113+
depend-on:
114+
- publish_to_local_registry
115+
- identifier: build_app_android
116+
buildspec: .codebuild/run_e2e_tests.yml
117+
env:
118+
compute-type: BUILD_GENERAL1_MEDIUM
119+
variables:
120+
TEST_SUITE: src/__tests__/build-app-android.test.ts
121+
CLI_REGION: ap-northeast-1
122+
depend-on:
123+
- publish_to_local_registry
124+
- identifier: cleanup_e2e_resources
125+
buildspec: .codebuild/cleanup_e2e_resources.yml
126+
env:
127+
compute-type: BUILD_GENERAL1_MEDIUM
128+
depend-on:
129+
- >-
130+
add_codegen_ios_configure_codegen_android_configure_codegen_js_graphql_codegen_android

.codebuild/e2e_workflow_base.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
compute-type: BUILD_GENERAL1_LARGE
5+
6+
batch:
7+
fast-fail: false
8+
build-graph:
9+
- identifier: build_linux
10+
buildspec: .codebuild/build_linux.yml
11+
env:
12+
compute-type: BUILD_GENERAL1_LARGE
13+
- identifier: test
14+
buildspec: .codebuild/test.yml
15+
env:
16+
compute-type: BUILD_GENERAL1_LARGE
17+
depend-on:
18+
- build_linux
19+
- identifier: verify_api_extract
20+
buildspec: .codebuild/verify_api_extract.yml
21+
env:
22+
compute-type: BUILD_GENERAL1_MEDIUM
23+
depend-on:
24+
- build_linux
25+
- identifier: publish_to_local_registry
26+
buildspec: .codebuild/publish_to_local_registry.yml
27+
env:
28+
compute-type: BUILD_GENERAL1_MEDIUM
29+
depend-on:
30+
- build_linux
31+
- identifier: build_app_swift
32+
buildspec: .codebuild/run_ios_modelgen_e2e_test.yml
33+
env:
34+
compute-type: BUILD_GENERAL1_LARGE
35+
variables:
36+
TEST_SUITE: src/__tests__/build-app-swift.test.ts
37+
CLI_REGION: us-east-2
38+
depend-on:
39+
- publish_to_local_registry

.codebuild/lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
phases:
5+
build:
6+
commands:
7+
- source ./shared-scripts.sh && _lint

.codebuild/pr_workflow.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
version: 0.2
2+
env:
3+
shell: bash
4+
compute-type: BUILD_GENERAL1_LARGE
5+
6+
batch:
7+
fast-fail: false
8+
build-graph:
9+
- identifier: build_linux
10+
buildspec: .codebuild/build_linux.yml
11+
- identifier: test
12+
buildspec: .codebuild/test.yml
13+
depend-on:
14+
- build_linux
15+
- identifier: lint
16+
buildspec: .codebuild/lint.yml
17+
depend-on:
18+
- build_linux
19+
- identifier: verify_api_extract
20+
buildspec: .codebuild/verify_api_extract.yml
21+
depend-on:
22+
- build_linux

0 commit comments

Comments
 (0)