Skip to content

Commit

Permalink
bump iOS SDK version to 2.33.4
Browse files Browse the repository at this point in the history
bump iOS SDK version to 2.33.4
  • Loading branch information
Di Wu authored Aug 21, 2023
2 parents 91df3b7 + 4aebb2a commit 4d7cdf5
Show file tree
Hide file tree
Showing 242 changed files with 9,618 additions and 3,605 deletions.
1,532 changes: 0 additions & 1,532 deletions .circleci/config.yml

This file was deleted.

89 changes: 89 additions & 0 deletions .github/workflows/integ-test.yml
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]}
66 changes: 66 additions & 0 deletions .github/workflows/kick-off-release.yml
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
4 changes: 3 additions & 1 deletion .github/workflows/notify_issue_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ jobs:
env:
WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }}
COMMENT: ${{toJson(github.event.comment.body)}}
USER: ${{github.event.issue.user.login}}
COMMENT_URL: ${{github.event.comment.html_url}}
shell: bash
run: echo $COMMENT | sed "s/\\\n/. /g; s/\\\r//g; s/[^a-zA-Z0-9 &().,:]//g" | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"comment":"{}", "commentUrl":"${{github.event.comment.html_url}}", "user":"${{github.event.comment.user.login}}"}'
run: echo $COMMENT | sed "s/\\\n/. /g; s/\\\r//g; s/[^a-zA-Z0-9 &().,:]//g" | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"comment":"{}", "commentUrl":"'$COMMENT_URL'", "user":"'$USER'"}'
4 changes: 3 additions & 1 deletion .github/workflows/notify_new_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ jobs:
env:
WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }}
ISSUE: ${{toJson(github.event.issue.title)}}
ISSUE_URL: ${{github.event.issue.html_url}}
USER: ${{github.event.issue.user.login}}
shell: bash
run: echo $ISSUE | sed 's/[^a-zA-Z0-9 &().,:]//g' | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"{}", "issueUrl":"${{github.event.issue.html_url}}", "user":"${{github.event.issue.user.login}}"}'
run: echo $ISSUE | sed 's/[^a-zA-Z0-9 &().,:]//g' | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"{}", "issueUrl":"'$ISSUE_URL'", "user":"'$USER'"}'
4 changes: 3 additions & 1 deletion .github/workflows/notify_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ jobs:
env:
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }}
VERSION: $${{github.event.release.html_url}}
REPO_URL: ${{github.event.repository.html_url}}
ACTION_NAME: ${{github.event.action}}
shell: bash
run: echo $VERSION | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"action":"${{github.event.action}}", "repo":"${{github.event.repository.html_url}}", "version":"{}"}'
run: echo $VERSION | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"action":"'$ACTION_NAME'", "repo":"'$REPO_URL'", "version":"{}"}'
Loading

0 comments on commit 4d7cdf5

Please sign in to comment.