Skip to content

Commit dcb556f

Browse files
authored
chore: kickoff release
2 parents 5a1eccf + 5de4289 commit dcb556f

27 files changed

+633
-625
lines changed

.github/workflows/integ_test.yml

Lines changed: 18 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -29,176 +29,32 @@ jobs:
2929
aws_region: ${{ secrets.AWS_REGION }}
3030
aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
3131

32-
analytics-integration-test:
32+
analytics-test:
3333
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
5736

58-
59-
push-notification-integration-test:
37+
push-notifications-test:
6038
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
9641

97-
predictions-integration-test:
98-
continue-on-error: true
42+
predictions-test:
9943
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
12046

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:
12848
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
15251

153-
geo-integration-test:
52+
geo-test:
15453
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
16456

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:
18158
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
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Integration Tests | Amalytics
2+
on:
3+
workflow_dispatch:
4+
workflow_call:
5+
6+
permissions:
7+
id-token: write
8+
contents: read
9+
10+
jobs:
11+
analytics-integration-test:
12+
runs-on: macos-12
13+
environment: IntegrationTest
14+
steps:
15+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
16+
with:
17+
persist-credentials: false
18+
19+
- name: Make directory
20+
run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
21+
22+
- name: Copy integration test resouces
23+
uses: ./.github/composite_actions/download_test_configuration
24+
with:
25+
resource_subfolder: analytics
26+
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
27+
aws_region: ${{ secrets.AWS_REGION }}
28+
aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
29+
30+
- name: Run Integration test
31+
uses: ./.github/composite_actions/run_xcodebuild_test
32+
with:
33+
project_path: ./AmplifyPlugins/Analytics/Tests/AnalyticsHostApp
34+
scheme: AWSPinpointAnalyticsPluginIntegrationTests

0 commit comments

Comments
 (0)