-
Notifications
You must be signed in to change notification settings - Fork 886
96 lines (86 loc) · 2.62 KB
/
unit-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Unit Test
on:
workflow_call:
inputs:
identifier:
required: true
type: string
pull_request:
branches:
- main
permissions: { }
concurrency:
group: ${{ inputs.identifier || github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
unit-test:
name: Unit Test
strategy:
fail-fast: false
matrix:
scheme:
- AWSAPIGateway
- AWSAutoScaling
- AWSCloudWatch
- AWSCognitoAuth
- AWSCognitoIdentityProvider
- AWSComprehend
- AWSConnect
- AWSConnectParticipant
- AWSCore
- AWSDynamoDB
- AWSEC2
- AWSElasticLoadBalancing
- AWSIoT
- AWSKMS
- AWSKinesis
- AWSKinesisVideo
- AWSKinesisVideoArchivedMedia
- AWSKinesisVideoSignaling
- AWSKinesisVideoWebRTCStorage
- AWSLambda
- AWSLex
- AWSLogs
- AWSMachineLearning
- AWSMobileClient
- AWSPinpoint
- AWSPolly
- AWSRekognition
- AWSS3
- AWSSES
- AWSSNS
- AWSSQS
- AWSSageMakerRuntime
- AWSSimpleDB
- AWSTextract
- AWSTranscribe
- AWSTranscribeStreaming
- AWSTranslate
- AWSLocation
- AWSChimeSDKMessaging
- AWSChimeSDKIdentity
include:
- project: AWSiOSSDKv2.xcodeproj
- project: AWSAuthSDK/AWSAuthSDK.xcodeproj
scheme: AWSMobileClient
runs-on: macos-13
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
persist-credentials: false
- name: ${{ matrix.scheme }}
run: |
xcodebuild test -project "${{ matrix.project }}" \
-scheme ${{ matrix.scheme }} \
-destination "platform=iOS Simulator,name=iPhone 14,OS=latest" \
-sdk iphonesimulator \
-only-testing:"${{ matrix.scheme }}UnitTests" | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]}
- name: Additional AWSCore unit test
if: ${{ matrix.scheme == 'AWSCore' }}
run: |
xcodebuild test -project "${{ matrix.project }}" \
-scheme ${{ matrix.scheme }} \
-destination "platform=iOS Simulator,name=iPhone 14,OS=latest" \
-sdk iphonesimulator \
-only-testing:AWSCoreServiceConfigurationTest \
-only-testing:AWSCoreConfigurationTest | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]}