Skip to content

Commit e774dc4

Browse files
authored
chore: kickoff release
2 parents 10e03f1 + 3162732 commit e774dc4

File tree

246 files changed

+9476
-1225
lines changed

Some content is hidden

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

246 files changed

+9476
-1225
lines changed

.circleci/config.yml

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ parameters:
99
macos-destination:
1010
type: string
1111
default: platform=macOS,arch=x86_64
12+
tvos-destination:
13+
type: string
14+
default: platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=latest
15+
watchos-destination:
16+
type: string
17+
default: platform=watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=latest
1218

1319
orbs:
1420
aws-cli: circleci/[email protected]
@@ -97,6 +103,7 @@ orbs:
97103
defaults: &defaults
98104
macos:
99105
xcode: '14.0.0'
106+
resource_class: macos.x86.medium.gen2
100107
environment:
101108
BUNDLE_JOBS: 4
102109
BUNDLE_RETRY: 3
@@ -151,6 +158,26 @@ jobs:
151158
- run:
152159
name: Build amplify for macos SPM
153160
command: xcodebuild build -scheme Amplify-Package -sdk macosx -destination "<< pipeline.parameters.macos-destination >>" | tee "artifacts/build-Ampify-for-macos-SPM.log" | xcpretty
161+
build_amplify_tvos_spm:
162+
<<: *defaults
163+
macos:
164+
xcode: '14.3.0'
165+
steps:
166+
- shallow_checkout
167+
- make_artifacts_directory
168+
- run:
169+
name: Build amplify for tvOS SPM
170+
command: xcodebuild build -scheme Amplify-Package -sdk appletvsimulator -destination "<< pipeline.parameters.tvos-destination >>" | tee "artifacts/build-Ampify-for-tvos-SPM.log" | xcpretty
171+
build_amplify_watchos_spm:
172+
<<: *defaults
173+
macos:
174+
xcode: '14.3.0'
175+
steps:
176+
- shallow_checkout
177+
- make_artifacts_directory
178+
- run:
179+
name: Build amplify for watchOS SPM
180+
command: xcodebuild build -scheme Amplify-Package -sdk watchsimulator -destination "<< pipeline.parameters.watchos-destination >>" | tee "artifacts/build-Ampify-for-watchos-SPM.log" | xcpretty
154181

155182
unit_test:
156183
<<: *defaults
@@ -164,6 +191,8 @@ jobs:
164191
type: string
165192
destination:
166193
type: string
194+
macos:
195+
xcode: <<parameters.xcode-version>>
167196
description: << parameters.scheme >> unit test
168197
steps:
169198
- shallow_checkout
@@ -253,6 +282,8 @@ deploy_requires: &deploy_requires
253282
requires:
254283
- build_amplify_ios_spm
255284
- build_amplify_macos_spm
285+
- build_amplify_tvos_spm
286+
- build_amplify_watchos_spm
256287
- ios_unit_test_amplify
257288
- ios_unit_test_awspluginscore
258289
- ios_unit_test_analytics
@@ -275,6 +306,28 @@ deploy_requires: &deploy_requires
275306
- macos_unit_test_push_notifications
276307
- macos_unit_test_storage
277308
- macos_unit_test_predictions
309+
- tvos_unit_test_amplify
310+
- tvos_unit_test_awspluginscore
311+
- tvos_unit_test_analytics
312+
- tvos_unit_test_api
313+
- tvos_unit_test_auth
314+
- tvos_unit_test_datastore
315+
- tvos_unit_test_geo
316+
- tvos_unit_test_internal_pinpoint
317+
- tvos_unit_test_push_notifications
318+
- tvos_unit_test_storage
319+
- tvos_unit_test_predictions
320+
- watchos_unit_test_amplify
321+
- watchos_unit_test_awspluginscore
322+
- watchos_unit_test_analytics
323+
- watchos_unit_test_api
324+
- watchos_unit_test_auth
325+
- watchos_unit_test_datastore
326+
- watchos_unit_test_geo
327+
- watchos_unit_test_internal_pinpoint
328+
- watchos_unit_test_push_notifications
329+
- watchos_unit_test_storage
330+
- watchos_unit_test_predictions
278331
- fortify_scan
279332

280333
workflows:
@@ -292,6 +345,12 @@ workflows:
292345
- build_amplify_macos_spm:
293346
requires:
294347
- fortify_scan
348+
- build_amplify_tvos_spm:
349+
requires:
350+
- fortify_scan
351+
- build_amplify_watchos_spm:
352+
requires:
353+
- fortify_scan
295354
- unit_test:
296355
name: ios_unit_test_amplify
297356
scheme: Amplify
@@ -446,6 +505,182 @@ workflows:
446505
destination: << pipeline.parameters.macos-destination >>
447506
requires:
448507
- build_amplify_macos_spm
508+
- unit_test:
509+
name: tvos_unit_test_amplify
510+
scheme: Amplify
511+
sdk: appletvsimulator
512+
destination: << pipeline.parameters.tvos-destination >>
513+
xcode-version: '14.3.0'
514+
requires:
515+
- build_amplify_tvos_spm
516+
- unit_test:
517+
name: tvos_unit_test_awspluginscore
518+
scheme: AWSPluginsCore
519+
sdk: appletvsimulator
520+
destination: << pipeline.parameters.tvos-destination >>
521+
xcode-version: '14.3.0'
522+
requires:
523+
- build_amplify_tvos_spm
524+
- unit_test:
525+
name: tvos_unit_test_analytics
526+
scheme: AWSPinpointAnalyticsPlugin
527+
sdk: appletvsimulator
528+
destination: << pipeline.parameters.tvos-destination >>
529+
xcode-version: '14.3.0'
530+
requires:
531+
- build_amplify_tvos_spm
532+
- unit_test:
533+
name: tvos_unit_test_api
534+
scheme: AWSAPIPlugin
535+
sdk: appletvsimulator
536+
destination: << pipeline.parameters.tvos-destination >>
537+
xcode-version: '14.3.0'
538+
requires:
539+
- build_amplify_tvos_spm
540+
- unit_test:
541+
name: tvos_unit_test_auth
542+
scheme: AWSCognitoAuthPlugin
543+
sdk: appletvsimulator
544+
destination: << pipeline.parameters.tvos-destination >>
545+
xcode-version: '14.3.0'
546+
requires:
547+
- build_amplify_tvos_spm
548+
- unit_test:
549+
name: tvos_unit_test_datastore
550+
scheme: AWSDataStorePlugin
551+
sdk: appletvsimulator
552+
destination: << pipeline.parameters.tvos-destination >>
553+
xcode-version: '14.3.0'
554+
requires:
555+
- build_amplify_tvos_spm
556+
- unit_test:
557+
name: tvos_unit_test_geo
558+
scheme: AWSLocationGeoPlugin
559+
sdk: appletvsimulator
560+
destination: << pipeline.parameters.tvos-destination >>
561+
xcode-version: '14.3.0'
562+
requires:
563+
- build_amplify_tvos_spm
564+
- unit_test:
565+
name: tvos_unit_test_internal_pinpoint
566+
scheme: InternalAWSPinpointUnitTests
567+
sdk: appletvsimulator
568+
destination: << pipeline.parameters.tvos-destination >>
569+
xcode-version: '14.3.0'
570+
requires:
571+
- build_amplify_tvos_spm
572+
- unit_test:
573+
name: tvos_unit_test_push_notifications
574+
scheme: AWSPinpointPushNotificationsPlugin
575+
sdk: appletvsimulator
576+
destination: << pipeline.parameters.tvos-destination >>
577+
xcode-version: '14.3.0'
578+
requires:
579+
- build_amplify_tvos_spm
580+
- unit_test:
581+
name: tvos_unit_test_storage
582+
scheme: AWSS3StoragePlugin
583+
sdk: appletvsimulator
584+
destination: << pipeline.parameters.tvos-destination >>
585+
xcode-version: '14.3.0'
586+
requires:
587+
- build_amplify_tvos_spm
588+
- unit_test:
589+
name: tvos_unit_test_predictions
590+
scheme: AWSPredictionsPlugin
591+
sdk: appletvsimulator
592+
destination: << pipeline.parameters.tvos-destination >>
593+
xcode-version: '14.3.0'
594+
requires:
595+
- build_amplify_tvos_spm
596+
- unit_test:
597+
name: watchos_unit_test_amplify
598+
scheme: Amplify
599+
sdk: watchsimulator
600+
destination: << pipeline.parameters.watchos-destination >>
601+
xcode-version: '14.3.0'
602+
requires:
603+
- build_amplify_watchos_spm
604+
- unit_test:
605+
name: watchos_unit_test_awspluginscore
606+
scheme: AWSPluginsCore
607+
sdk: watchsimulator
608+
destination: << pipeline.parameters.watchos-destination >>
609+
xcode-version: '14.3.0'
610+
requires:
611+
- build_amplify_watchos_spm
612+
- unit_test:
613+
name: watchos_unit_test_analytics
614+
scheme: AWSPinpointAnalyticsPlugin
615+
sdk: watchsimulator
616+
destination: << pipeline.parameters.watchos-destination >>
617+
xcode-version: '14.3.0'
618+
requires:
619+
- build_amplify_watchos_spm
620+
- unit_test:
621+
name: watchos_unit_test_api
622+
scheme: AWSAPIPlugin
623+
sdk: watchsimulator
624+
destination: << pipeline.parameters.watchos-destination >>
625+
xcode-version: '14.3.0'
626+
requires:
627+
- build_amplify_watchos_spm
628+
- unit_test:
629+
name: watchos_unit_test_auth
630+
scheme: AWSCognitoAuthPlugin
631+
sdk: watchsimulator
632+
destination: << pipeline.parameters.watchos-destination >>
633+
xcode-version: '14.3.0'
634+
requires:
635+
- build_amplify_watchos_spm
636+
- unit_test:
637+
name: watchos_unit_test_datastore
638+
scheme: AWSDataStorePlugin
639+
sdk: watchsimulator
640+
destination: << pipeline.parameters.watchos-destination >>
641+
xcode-version: '14.3.0'
642+
requires:
643+
- build_amplify_watchos_spm
644+
- unit_test:
645+
name: watchos_unit_test_geo
646+
scheme: AWSLocationGeoPlugin
647+
sdk: watchsimulator
648+
destination: << pipeline.parameters.watchos-destination >>
649+
xcode-version: '14.3.0'
650+
requires:
651+
- build_amplify_watchos_spm
652+
- unit_test:
653+
name: watchos_unit_test_internal_pinpoint
654+
scheme: InternalAWSPinpointUnitTests
655+
sdk: watchsimulator
656+
destination: << pipeline.parameters.watchos-destination >>
657+
xcode-version: '14.3.0'
658+
requires:
659+
- build_amplify_watchos_spm
660+
- unit_test:
661+
name: watchos_unit_test_push_notifications
662+
scheme: AWSPinpointPushNotificationsPlugin
663+
sdk: watchsimulator
664+
destination: << pipeline.parameters.watchos-destination >>
665+
xcode-version: '14.3.0'
666+
requires:
667+
- build_amplify_watchos_spm
668+
- unit_test:
669+
name: watchos_unit_test_storage
670+
scheme: AWSS3StoragePlugin
671+
sdk: watchsimulator
672+
destination: << pipeline.parameters.watchos-destination >>
673+
xcode-version: '14.3.0'
674+
requires:
675+
- build_amplify_watchos_spm
676+
- unit_test:
677+
name: watchos_unit_test_predictions
678+
scheme: AWSPredictionsPlugin
679+
sdk: watchsimulator
680+
destination: << pipeline.parameters.watchos-destination >>
681+
xcode-version: '14.3.0'
682+
requires:
683+
- build_amplify_watchos_spm
449684
- deploy:
450685
name: deploy unstable
451686
<<: *deploy_requires

.github/workflows/integ_test_analytics.yml

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Integration Tests | Amalytics
1+
name: Integration Tests | Analytics
22
on:
33
workflow_dispatch:
44
workflow_call:
@@ -8,7 +8,7 @@ permissions:
88
contents: read
99

1010
jobs:
11-
analytics-integration-test:
11+
analytics-integration-test-iOS:
1212
runs-on: macos-12
1313
environment: IntegrationTest
1414
steps:
@@ -32,3 +32,59 @@ jobs:
3232
with:
3333
project_path: ./AmplifyPlugins/Analytics/Tests/AnalyticsHostApp
3434
scheme: AWSPinpointAnalyticsPluginIntegrationTests
35+
36+
analytics-integration-test-tvOS:
37+
runs-on: macos-13
38+
environment: IntegrationTest
39+
steps:
40+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
41+
with:
42+
persist-credentials: false
43+
44+
- name: Make directory
45+
run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
46+
47+
- name: Copy integration test resouces
48+
uses: ./.github/composite_actions/download_test_configuration
49+
with:
50+
resource_subfolder: analytics
51+
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
52+
aws_region: ${{ secrets.AWS_REGION }}
53+
aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
54+
55+
- name: Run Integration test
56+
uses: ./.github/composite_actions/run_xcodebuild_test
57+
with:
58+
project_path: ./AmplifyPlugins/Analytics/Tests/AnalyticsHostApp
59+
scheme: AWSPinpointAnalyticsPluginIntegrationTests
60+
destination: platform=tvOS Simulator,name=Apple TV 4K (3rd generation),OS=latest
61+
sdk: appletvsimulator
62+
xcode_path: '/Applications/Xcode_14.3.app'
63+
64+
analytics-integration-test-watchOS:
65+
runs-on: macos-13
66+
environment: IntegrationTest
67+
steps:
68+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
69+
with:
70+
persist-credentials: false
71+
72+
- name: Make directory
73+
run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
74+
75+
- name: Copy integration test resouces
76+
uses: ./.github/composite_actions/download_test_configuration
77+
with:
78+
resource_subfolder: analytics
79+
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
80+
aws_region: ${{ secrets.AWS_REGION }}
81+
aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG_V2 }}
82+
83+
- name: Run Integration test
84+
uses: ./.github/composite_actions/run_xcodebuild_test
85+
with:
86+
project_path: ./AmplifyPlugins/Analytics/Tests/AnalyticsHostApp
87+
scheme: AWSPinpointAnalyticsPluginIntegrationTestsWatch
88+
destination: platform=watchOS Simulator,name=Apple Watch Series 8 (45mm),OS=latest
89+
sdk: watchsimulator
90+
xcode_path: '/Applications/Xcode_14.3.app'

0 commit comments

Comments
 (0)