-
Notifications
You must be signed in to change notification settings - Fork 886
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump iOS SDK version to 2.33.4
- Loading branch information
Showing
242 changed files
with
9,618 additions
and
3,605 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Integration Test | ||
|
||
on: | ||
workflow_call: | ||
pull_request_target: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
integration-test: | ||
name: Integration Test | ||
environment: IntegrationTest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scheme: | ||
- AWSMobileClient | ||
- AWSAutoScaling | ||
- AWSCloudWatch | ||
- AWSComprehend | ||
- AWSCore | ||
- AWSDynamoDB | ||
- AWSEC2 | ||
- AWSElasticLoadBalancing | ||
- AWSIoT | ||
- AWSKMS | ||
- AWSKinesis | ||
- AWSKinesisVideoSignaling | ||
- AWSLambda | ||
- AWSLex | ||
- AWSPinpoint | ||
- AWSPolly | ||
- AWSRekognition | ||
- AWSS3 | ||
- AWSSES | ||
- AWSSNS | ||
- AWSSQS | ||
- AWSTextract | ||
- AWSTranscribe | ||
- AWSTranscribeStreaming | ||
- AWSTranslate | ||
include: | ||
- project: AWSiOSSDKv2.xcodeproj | ||
- project: AWSAuthSDK/AWSAuthSDK.xcodeproj | ||
scheme: AWSMobileClient | ||
|
||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | ||
role-duration-seconds: 3600 | ||
aws-region: us-east-1 | ||
role-session-name: "integ-test.${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" | ||
|
||
- name: Build testconfiguration | ||
run: ./Scripts/generate-test-config.sh -p ios -v | ||
shell: bash | ||
|
||
- name: ${{ matrix.scheme }} | ||
run: | | ||
xcodebuild test -project ${{ matrix.project }} \ | ||
-scheme ${{ matrix.scheme }} \ | ||
-sdk iphonesimulator \ | ||
-destination "platform=iOS Simulator,name=iPhone 14,OS=latest" \ | ||
-only-testing:"${{ matrix.scheme }}Tests" | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]} | ||
- name: Additional AWSMobileClient integration test targets | ||
if: ${{ matrix.scheme == 'AWSMobileClient' }} | ||
run: | | ||
xcodebuild test -project ${{ matrix.project }} \ | ||
-scheme ${{ matrix.scheme }} \ | ||
-sdk iphonesimulator \ | ||
-destination "platform=iOS Simulator,name=iPhone 14,OS=latest" \ | ||
-only-testing:AWSMobileClientCustomAuthTests | xcpretty --simple --color --report junit && exit ${PIPESTATUS[0]} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Kick off release | ||
|
||
run-name: Kick off release ${{ github.event.inputs.release-version }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release-version: | ||
description: Release version | ||
required: true | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
validate-version-format: | ||
name: Validate Release Version Format | ||
if: ${{ github.ref_name == 'main' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
RELEASE_VERSION: ${{ github.event.inputs.release-version }} | ||
steps: | ||
- name: Validate release version input | ||
run: | | ||
if [[ "$RELEASE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] | ||
then | ||
echo "Valid version - $RELEASE_VERSION" | ||
else | ||
echo "Invalid version - $RELEASE_VERSION" | ||
exit 1 | ||
fi | ||
shell: bash | ||
|
||
create-release-pr: | ||
name: Create release PR for ${{ github.event.inputs.release-version }} | ||
runs-on: macos-latest | ||
needs: | ||
- validate-version-format | ||
env: | ||
RELEASE_VERSION: ${{ github.event.inputs.release-version }} | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | ||
with: | ||
ref: main | ||
|
||
- name: Bump versions to ${{ env.RELEASE_VERSION }} | ||
run: | | ||
pip3 install lxml | ||
git checkout -b bump-version/$RELEASE_VERSION main | ||
python3 ./CircleciScripts/bump_sdk_version.py "$(pwd)" "$RELEASE_VERSION" | ||
git add -A | ||
git commit -am "[bump version $RELEASE_VERSION]" | ||
git push origin HEAD | ||
shell: bash | ||
|
||
- name: Create Pull Request | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh pr create \ | ||
--title "bump iOS SDK version to $RELEASE_VERSION" \ | ||
--body "bump version to $RELEASE_VERSION" \ | ||
--head bump-version/$RELEASE_VERSION \ | ||
--base release |
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
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
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
Oops, something went wrong.