@@ -29,176 +29,32 @@ jobs:
29
29
aws_region : ${{ secrets.AWS_REGION }}
30
30
aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
31
31
32
- analytics-integration- test :
32
+ analytics-test :
33
33
needs : prepare-for-test
34
- runs-on : macos-12
35
- environment : IntegrationTest
36
- steps :
37
- - uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
38
- with :
39
- persist-credentials : false
40
-
41
- - name : Make directory
42
- run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
43
-
44
- - name : Copy integration test resouces
45
- uses : ./.github/composite_actions/download_test_configuration
46
- with :
47
- resource_subfolder : analytics
48
- aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
49
- aws_region : ${{ secrets.AWS_REGION }}
50
- aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
51
-
52
- - name : Run Integration test
53
- uses : ./.github/composite_actions/run_xcodebuild_test
54
- with :
55
- project_path : ./AmplifyPlugins/Analytics/Tests/AnalyticsHostApp
56
- scheme : AWSPinpointAnalyticsPluginIntegrationTests
34
+ uses : ./.github/workflows/integ_test_analytics.yml
35
+ secrets : inherit
57
36
58
-
59
- push-notification-integration-test :
37
+ push-notifications-test :
60
38
needs : prepare-for-test
61
- runs-on : macos-12
62
- environment : IntegrationTest
63
- steps :
64
- - uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
65
- with :
66
- persist-credentials : false
67
-
68
- - name : Make directory
69
- run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
70
-
71
- - name : Copy integration test resouces
72
- uses : ./.github/composite_actions/download_test_configuration
73
- with :
74
- resource_subfolder : push-notification
75
- aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
76
- aws_region : ${{ secrets.AWS_REGION }}
77
- aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
78
-
79
- - name : Set up node
80
- uses : actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
81
- with :
82
- node-version : 16.x
83
-
84
- - name : Run Local Server
85
- run : |
86
- cd ./AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp/LocalServer
87
- npm install
88
- npm start &
89
- shell : bash
90
-
91
- - name : Run Integration test
92
- uses : ./.github/composite_actions/run_xcodebuild_test
93
- with :
94
- project_path : ./AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp
95
- scheme : PushNotificationHostApp
39
+ uses : ./.github/workflows/integ_test_push_notifications.yml
40
+ secrets : inherit
96
41
97
- predictions-integration-test :
98
- continue-on-error : true
42
+ predictions-test :
99
43
needs : prepare-for-test
100
- runs-on : macos-12
101
- environment : IntegrationTest
102
- steps :
103
- - uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
104
- with :
105
- persist-credentials : false
106
-
107
- - name : Make directory
108
- run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
109
-
110
- - name : Copy integration test resouces
111
- uses : ./.github/composite_actions/download_test_configuration
112
- with :
113
- resource_subfolder : predictions
114
- aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
115
- aws_region : ${{ secrets.AWS_REGION }}
116
- aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG }}
117
-
118
- - name : List the copied configurations
119
- run : ls ~/.aws-amplify/amplify-ios/testconfiguration/
44
+ uses : ./.github/workflows/integ_test_predictions.yml
45
+ secrets : inherit
120
46
121
- - name : Run Integration test
122
- uses : ./.github/composite_actions/run_xcodebuild_test
123
- with :
124
- project_path : ./AmplifyPlugins/Predictions/Tests/PredictionsHostApp
125
- scheme : AWSPredictionsPluginIntegrationTests
126
-
127
- auth-integration-test :
47
+ auth-test :
128
48
needs : prepare-for-test
129
- runs-on : macos-12
130
- environment : IntegrationTest
131
- steps :
132
- - uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
133
- with :
134
- persist-credentials : false
135
-
136
- - name : Make directory
137
- run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
138
-
139
- - name : Copy integration test resouces
140
- uses : ./.github/composite_actions/download_test_configuration
141
- with :
142
- resource_subfolder : auth
143
- aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
144
- aws_region : ${{ secrets.AWS_REGION }}
145
- aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
146
-
147
- - name : Run Integration test
148
- uses : ./.github/composite_actions/run_xcodebuild_test
149
- with :
150
- project_path : ./AmplifyPlugins/Auth/Tests/AuthHostApp/
151
- scheme : AuthIntegrationTests
49
+ uses : ./.github/workflows/integ_test_auth.yml
50
+ secrets : inherit
152
51
153
- geo-integration- test :
52
+ geo-test :
154
53
needs : prepare-for-test
155
- runs-on : macos-12
156
- environment : IntegrationTest
157
- steps :
158
- - uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
159
- with :
160
- persist-credentials : false
161
-
162
- - name : Make directory
163
- run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
54
+ uses : ./.github/workflows/integ_test_geo.yml
55
+ secrets : inherit
164
56
165
- - name : Copy integration test resouces
166
- uses : ./.github/composite_actions/download_test_configuration
167
- with :
168
- resource_subfolder : geo
169
- aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
170
- aws_region : ${{ secrets.AWS_REGION }}
171
- aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
172
-
173
- - name : Run Integration test
174
- uses : ./.github/composite_actions/run_xcodebuild_test
175
- with :
176
- project_path : ./AmplifyPlugins/Geo/Tests/GeoHostApp/
177
- scheme : AWSLocationGeoPluginIntegrationTests
178
-
179
-
180
- storage-integration-test :
57
+ storage-test :
181
58
needs : prepare-for-test
182
- runs-on : macos-12
183
- environment : IntegrationTest
184
- steps :
185
- - uses : actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
186
- with :
187
- persist-credentials : false
188
-
189
- - name : Make directory
190
- run : mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
191
-
192
- - name : Copy integration test resouces
193
- uses : ./.github/composite_actions/download_test_configuration
194
- with :
195
- resource_subfolder : storage
196
- aws_role_to_assume : ${{ secrets.AWS_ROLE_TO_ASSUME }}
197
- aws_region : ${{ secrets.AWS_REGION }}
198
- aws_s3_bucket : ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
199
-
200
- - name : Run Integration test
201
- uses : ./.github/composite_actions/run_xcodebuild_test
202
- with :
203
- project_path : ./AmplifyPlugins/Storage/Tests/StorageHostApp/
204
- scheme : AWSS3StoragePluginIntegrationTests
59
+ uses : ./.github/workflows/integ_test_storage.yml
60
+ secrets : inherit
0 commit comments