Skip to content

Commit b890172

Browse files
author
Di Wu
authored
ci: enable push notification category integration test (#2826)
1 parent 8773619 commit b890172

File tree

1 file changed

+39
-41
lines changed

1 file changed

+39
-41
lines changed

.github/workflows/integ_test.yml

Lines changed: 39 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -55,46 +55,44 @@ jobs:
5555
project_path: ./AmplifyPlugins/Analytics/Tests/AnalyticsHostApp
5656
scheme: AWSPinpointAnalyticsPluginIntegrationTests
5757

58-
# Disabling these tests because they do not currently work in CI. We will create a ticket to track
59-
# getting resolving this. In the meantime, they can be run locally.
60-
#
61-
# push-notification-integration-test:
62-
# needs: prepare-for-test
63-
# runs-on: macos-12
64-
# environment: IntegrationTest
65-
# steps:
66-
# - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
67-
# with:
68-
# persist-credentials: false
69-
70-
# - name: Make directory
71-
# run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
72-
73-
# - name: Copy integration test resouces
74-
# uses: ./.github/composite_actions/download_test_configuration
75-
# with:
76-
# resource_subfolder: push-notification
77-
# aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
78-
# aws_region: ${{ secrets.AWS_REGION }}
79-
# aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
80-
81-
# - name: Set up node
82-
# uses: actions/setup-node@v3
83-
# with:
84-
# node-version: 16.x
85-
86-
# - name: Run Local Server
87-
# run: |
88-
# cd ./AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp/LocalServer
89-
# npm install
90-
# npm start &
91-
# shell: bash
92-
93-
# - name: Run Integration test
94-
# uses: ./.github/composite_actions/run_xcodebuild_test
95-
# with:
96-
# project_path: ./AmplifyPlugins/Notifications/Push/Tests/PushNotificationHostApp
97-
# scheme: PushNotificationHostApp
58+
59+
push-notification-integration-test:
60+
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
9896

9997
auth-integration-test:
10098
needs: prepare-for-test
@@ -173,4 +171,4 @@ jobs:
173171
uses: ./.github/composite_actions/run_xcodebuild_test
174172
with:
175173
project_path: ./AmplifyPlugins/Storage/Tests/StorageHostApp/
176-
scheme: AWSS3StoragePluginIntegrationTests
174+
scheme: AWSS3StoragePluginIntegrationTests

0 commit comments

Comments
 (0)