1
1
name : IntegrationTest
2
2
on :
3
3
push :
4
- branches : [main] # Will change to main
4
+ branches : [main]
5
5
6
6
permissions :
7
7
id-token : write
46
46
with :
47
47
resource_subfolder : analytics
48
48
aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
49
- external_id : ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
50
49
aws_region : ${{ secrets.AWS_REGION }}
51
50
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
52
51
56
55
project_path : ./AmplifyPlugins/Analytics/
57
56
workspace : AnalyticsCategoryPlugin.xcworkspace
58
57
scheme : AWSPinpointAnalyticsPluginIntegrationTests
59
-
58
+
60
59
api-integration-test :
61
60
needs : prepare-for-test
62
61
runs-on : macos-latest
@@ -74,48 +73,144 @@ jobs:
74
73
with :
75
74
resource_subfolder : api
76
75
aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
77
- external_id : ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
78
76
aws_region : ${{ secrets.AWS_REGION }}
79
77
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
80
78
81
- - name : List the copied configurations
82
- run : ls ~/.aws-amplify/amplify-ios/testconfiguration/
83
-
84
79
- name : Run Integration test
85
80
uses : ./.github/composite_actions/run_xcodebuild_test
86
81
with :
87
82
project_path : ./AmplifyPlugins/API/
88
83
workspace : APICategoryPlugin.xcworkspace
89
84
scheme : AWSAPICategoryPluginFunctionalTests
90
85
86
+ api-graphqliam-integration-test :
87
+ needs : [api-integration-test]
88
+ runs-on : macos-latest
89
+ environment : IntegrationTest
90
+ steps :
91
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
92
+ with :
93
+ persist-credentials : false
94
+
95
+ - name : Make directory
96
+ run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
97
+
98
+ - name : Copy integration test resouces
99
+ uses : ./.github/composite_actions/download_test_configuration
100
+ with :
101
+ resource_subfolder : api
102
+ aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
103
+ aws_region : ${{ secrets.AWS_REGION }}
104
+ aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
105
+
91
106
- name : Run Integration test
92
107
uses : ./.github/composite_actions/run_xcodebuild_test
93
108
with :
94
109
project_path : ./AmplifyPlugins/API/
95
110
workspace : APICategoryPlugin.xcworkspace
96
111
scheme : GraphQLWithIAMIntegrationTests
97
112
113
+ api-graphqluserpool-integration-test :
114
+ needs : [api-integration-test]
115
+ runs-on : macos-latest
116
+ environment : IntegrationTest
117
+ steps :
118
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
119
+ with :
120
+ persist-credentials : false
121
+
122
+ - name : Make directory
123
+ run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
124
+
125
+ - name : Copy integration test resouces
126
+ uses : ./.github/composite_actions/download_test_configuration
127
+ with :
128
+ resource_subfolder : api
129
+ aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
130
+ aws_region : ${{ secrets.AWS_REGION }}
131
+ aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
132
+
98
133
- name : Run Integration test
99
134
uses : ./.github/composite_actions/run_xcodebuild_test
100
135
with :
101
136
project_path : ./AmplifyPlugins/API/
102
137
workspace : APICategoryPlugin.xcworkspace
103
138
scheme : GraphQLWithUserPoolIntegrationTests
104
139
140
+ api-restiam-integration-test :
141
+ needs : [api-integration-test]
142
+ runs-on : macos-latest
143
+ environment : IntegrationTest
144
+ steps :
145
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
146
+ with :
147
+ persist-credentials : false
148
+
149
+ - name : Make directory
150
+ run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
151
+
152
+ - name : Copy integration test resouces
153
+ uses : ./.github/composite_actions/download_test_configuration
154
+ with :
155
+ resource_subfolder : api
156
+ aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
157
+ aws_region : ${{ secrets.AWS_REGION }}
158
+ aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
159
+
105
160
- name : Run Integration test
106
161
uses : ./.github/composite_actions/run_xcodebuild_test
107
162
with :
108
163
project_path : ./AmplifyPlugins/API/
109
164
workspace : APICategoryPlugin.xcworkspace
110
165
scheme : RESTWithIAMIntegrationTests
111
166
167
+ api-restuserpool-integration-test :
168
+ needs : [api-integration-test]
169
+ runs-on : macos-latest
170
+ environment : IntegrationTest
171
+ steps :
172
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
173
+ with :
174
+ persist-credentials : false
175
+
176
+ - name : Make directory
177
+ run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
178
+
179
+ - name : Copy integration test resouces
180
+ uses : ./.github/composite_actions/download_test_configuration
181
+ with :
182
+ resource_subfolder : api
183
+ aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
184
+ aws_region : ${{ secrets.AWS_REGION }}
185
+ aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
186
+
112
187
- name : Run Integration test
113
188
uses : ./.github/composite_actions/run_xcodebuild_test
114
189
with :
115
190
project_path : ./AmplifyPlugins/API/
116
191
workspace : APICategoryPlugin.xcworkspace
117
192
scheme : RESTWithUserPoolIntegrationTests
118
193
194
+ api-graphqllambda-integration-test :
195
+ needs : [api-integration-test]
196
+ runs-on : macos-latest
197
+ environment : IntegrationTest
198
+ steps :
199
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
200
+ with :
201
+ persist-credentials : false
202
+
203
+ - name : Make directory
204
+ run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
205
+
206
+ - name : Copy integration test resouces
207
+ uses : ./.github/composite_actions/download_test_configuration
208
+ with :
209
+ resource_subfolder : api
210
+ aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
211
+ aws_region : ${{ secrets.AWS_REGION }}
212
+ aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
213
+
119
214
- name : Run Integration test
120
215
uses : ./.github/composite_actions/run_xcodebuild_test
121
216
with :
@@ -140,7 +235,6 @@ jobs:
140
235
with :
141
236
resource_subfolder : auth
142
237
aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
143
- external_id : ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
144
238
aws_region : ${{ secrets.AWS_REGION }}
145
239
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
146
240
@@ -168,27 +262,63 @@ jobs:
168
262
with :
169
263
resource_subfolder : datastore
170
264
aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
171
- external_id : ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
172
265
aws_region : ${{ secrets.AWS_REGION }}
173
266
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
174
267
175
- - name : List the copied configurations
176
- run : ls ~/.aws-amplify/amplify-ios/testconfiguration/
177
-
178
268
- name : Run Integration test
179
269
uses : ./.github/composite_actions/run_xcodebuild_test
180
270
with :
181
271
project_path : ./AmplifyPlugins/DataStore/
182
272
workspace : DataStoreCategoryPlugin.xcworkspace
183
273
scheme : AWSDataStoreCategoryPluginIntegrationTests
184
274
275
+ datastore-auth-integration-test :
276
+ needs : [datastore-integration-test]
277
+ runs-on : macos-latest
278
+ environment : IntegrationTest
279
+ steps :
280
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
281
+ with :
282
+ persist-credentials : false
283
+
284
+ - name : Make directory
285
+ run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
286
+
287
+ - name : Copy integration test resouces
288
+ uses : ./.github/composite_actions/download_test_configuration
289
+ with :
290
+ resource_subfolder : datastore
291
+ aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
292
+ aws_region : ${{ secrets.AWS_REGION }}
293
+ aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
294
+
185
295
- name : Run Integration test
186
296
uses : ./.github/composite_actions/run_xcodebuild_test
187
297
with :
188
298
project_path : ./AmplifyPlugins/DataStore/
189
299
workspace : DataStoreCategoryPlugin.xcworkspace
190
300
scheme : AWSDataStoreCategoryPluginAuthIntegrationTests
191
301
302
+ datastore-flutter-integration-test :
303
+ needs : [datastore-integration-test]
304
+ runs-on : macos-latest
305
+ environment : IntegrationTest
306
+ steps :
307
+ - uses : actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
308
+ with :
309
+ persist-credentials : false
310
+
311
+ - name : Make directory
312
+ run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
313
+
314
+ - name : Copy integration test resouces
315
+ uses : ./.github/composite_actions/download_test_configuration
316
+ with :
317
+ resource_subfolder : datastore
318
+ aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
319
+ aws_region : ${{ secrets.AWS_REGION }}
320
+ aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
321
+
192
322
- name : Run Integration test
193
323
uses : ./.github/composite_actions/run_xcodebuild_test
194
324
with :
@@ -213,7 +343,6 @@ jobs:
213
343
with :
214
344
resource_subfolder : geo
215
345
aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
216
- external_id : ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
217
346
aws_region : ${{ secrets.AWS_REGION }}
218
347
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
219
348
@@ -241,7 +370,6 @@ jobs:
241
370
with :
242
371
resource_subfolder : predictions
243
372
aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
244
- external_id : ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
245
373
aws_region : ${{ secrets.AWS_REGION }}
246
374
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
247
375
@@ -279,7 +407,6 @@ jobs:
279
407
with :
280
408
resource_subfolder : storage
281
409
aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
282
- external_id : ${{ secrets.AWS_ROLE_EXTERNAL_ID }}
283
410
aws_region : ${{ secrets.AWS_REGION }}
284
411
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
285
412
0 commit comments