chore: update unit-test.yml #611
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-15 | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
persist-credentials: false | |
- name: Install Rosetta | |
run: | | |
/usr/sbin/softwareupdate --install-rosetta --agree-to-license | |
- name: ${{ matrix.scheme }} | |
run: | | |
arch -x86_64 xcodebuild test -project "${{ matrix.project }}" \ | |
-scheme ${{ matrix.scheme }} \ | |
-destination "platform=iOS Simulator,name=iPhone 16,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: | | |
arch -x86_64 xcodebuild test -project "${{ matrix.project }}" \ | |
-scheme ${{ matrix.scheme }} \ | |
-destination "platform=iOS Simulator,name=iPhone 16,OS=latest" \ | |
-sdk iphonesimulator \ | |
-only-testing:AWSCoreServiceConfigurationTest \ | |
-only-testing:AWSCoreConfigurationTest | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]} |