diff --git a/.github/workflows/build_test_amplify.yml b/.github/workflows/build_test_amplify.yml deleted file mode 100644 index 322a2ac11d..0000000000 --- a/.github/workflows/build_test_amplify.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Build Test Amplify -on: - workflow_call: - workflow_dispatch: - push: - branches-ignore: - - v1 - - release-v1 - -permissions: - contents: read - -jobs: - build-test-amplify: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - name: Build Test Amplify - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: . - workspace: Amplify.xcworkspace - scheme: Amplify - - build-amplify-spm: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - name: Build Amplify for SPM - run: xcodebuild build-for-testing -scheme Amplify-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 13,OS=latest' | xcpretty diff --git a/.github/workflows/cleanup_labels_issue_close.yml b/.github/workflows/cleanup_labels_issue_close.yml deleted file mode 100644 index 84be33bad6..0000000000 --- a/.github/workflows/cleanup_labels_issue_close.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Removes pending-response and closing-soon labels when an issue is closed. - -name: Cleanup Labels on Issue Close - -on: - issues: - types: [closed] - -permissions: - issues: write - -jobs: - cleanup: - name: Remove labels - runs-on: ubuntu-latest - if: ${{ !github.event.issue.pull_request && (contains(github.event.issue.labels.*.name, 'pending-response') || contains(github.event.issue.labels.*.name, 'closing soon') || contains(github.event.issue.labels.*.name, 'pending-release')) }} - - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - - name: remove unnecessary labels after closing - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - run: | - gh issue edit $ISSUE_NUMBER --remove-label "closing soon" --remove-label "pending-response" --remove-label "pending-release" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml deleted file mode 100644 index f9cca09f2d..0000000000 --- a/.github/workflows/codeql.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: "CodeQL" - -on: - push: - branches: - - main - - v1 - pull_request: - # The branches below must be a subset of the branches above - branches: - - main - - v1 - schedule: - # ┌───────────── minute (0 - 59) - # │ ┌───────────── hour (0 - 23) - # │ │ ┌───────────── day of the month (1 - 31) - # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) - # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) - # │ │ │ │ │ - # │ │ │ │ │ - # │ │ │ │ │ - # * * * * * - - cron: '30 1 * * 0' -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: ['javascript'] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@822fe5ef9a15bd752ef127e9ff6eac38ec37dd9c - with: - languages: ${{ matrix.language }} - config-file: ./.github/codeql/config.yml - debug: true - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@822fe5ef9a15bd752ef127e9ff6eac38ec37dd9c - diff --git a/.github/workflows/deploy_package.yml b/.github/workflows/deploy_package.yml deleted file mode 100644 index 992d681673..0000000000 --- a/.github/workflows/deploy_package.yml +++ /dev/null @@ -1,78 +0,0 @@ -name: Deploy Package -on: - workflow_call: - inputs: - type: - description: 'The type of deployment. Valid values are unstable (default) and release' - default: 'unstable' - required: false - type: string - -permissions: - id-token: write - contents: write - -jobs: - build-and-test-amplify: - name: Build and Test Amplify - uses: ./.github/workflows/build_test_amplify.yml - - unit-tests: - name: Run Plugins Unit Tests - uses: ./.github/workflows/unit_test.yml - - fortify: - name: Run Fortify Scan - uses: ./.github/workflows/fortify_scan.yml - secrets: inherit - - release: - name: Release new ${{ inputs.type }} version - environment: Release - needs: [build-and-test-amplify, unit-tests, fortify] - runs-on: macos-12 - steps: - - name: Configure AWS credentials - uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 #v2 - with: - role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - role-session-name: ${{ format('{0}.release', github.run_id) }} - aws-region: ${{ secrets.AWS_REGION }} - role-duration-seconds: 900 - - - id: retrieve-token - name: Retrieve Deploy Token - env: - DEPLOY_SECRET_ARN: ${{ secrets.DEPLOY_SECRET_ARN }} - run: | - PAT=$(aws secretsmanager get-secret-value \ - --secret-id "$DEPLOY_SECRET_ARN" \ - | jq -r ".SecretString | fromjson | .Credential") - echo "token=$PAT" >> $GITHUB_OUTPUT - - - name: Checkout repo - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - with: - fetch-depth: 10 - token: ${{steps.retrieve-token.outputs.token}} - - - name: Restore Gems Cache - uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1 - with: - path: vendor/bundle - key: v2-gems-${{ hashFiles('**/Gemfile.lock') }} - - - name: Install Bundle - env: - BUNDLE_PATH: vendor/bundle - run: | - bundle config set --local path $BUNDLE_PATH - bundle check || bundle install - - - name: Release Pods - env: - COCOAPODS_SECRET_ARN: ${{ secrets.COCOAPODS_SECRET_ARN }} - WORKING_DIRECTORY: ${{ github.workspace }} - GITHUB_EMAIL: aws-amplify-ops@amazon.com - GITHUB_USER: aws-amplify-ops - run: bundle exec fastlane ${{ inputs.type }} diff --git a/.github/workflows/deploy_release.yml b/.github/workflows/deploy_release.yml deleted file mode 100644 index 01a68524e5..0000000000 --- a/.github/workflows/deploy_release.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Build, Test and Release | Stable version -on: - push: - branches: - release-v1 - -permissions: - id-token: write - contents: write - -jobs: - release-stable: - uses: ./.github/workflows/deploy_package.yml - with: - type: release - secrets: inherit diff --git a/.github/workflows/deploy_unstable.yml b/.github/workflows/deploy_unstable.yml deleted file mode 100644 index ebbde132ed..0000000000 --- a/.github/workflows/deploy_unstable.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Build, Test and Release | Unstable version -on: - push: - branches: - v1 - -permissions: - id-token: write - contents: write - -jobs: - release-unstable: - uses: ./.github/workflows/deploy_package.yml - with: - type: unstable - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/feature_request.yml b/.github/workflows/feature_request.yml deleted file mode 100644 index c450f5a2e9..0000000000 --- a/.github/workflows/feature_request.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Feature request label added. - -on: - issues: - types: [labeled] - -permissions: - issues: write - -jobs: - project: - name: Feature request message - runs-on: ubuntu-latest - if: ${{ github.event.label.name == 'feature-request' }} - - steps: - - name: add feature request comment - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - run: | - gh issue comment $ISSUE_NUMBER --repo aws-amplify/amplify-ios -b "This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!" diff --git a/.github/workflows/fortify_scan.yml b/.github/workflows/fortify_scan.yml deleted file mode 100644 index 72b998d9d4..0000000000 --- a/.github/workflows/fortify_scan.yml +++ /dev/null @@ -1,56 +0,0 @@ -name: Fortify Scan -on: - workflow_dispatch: - workflow_call: - push: - branches-ignore: - - v1 - - release-v1 - -permissions: - id-token: write - contents: read - -jobs: - fortify-scan: - runs-on: macos-12 - environment: Fortify - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make source directory - run: | - mkdir source - cp -r Amplify source - cp -r AmplifyPlugins source - - name: Configure AWS credentials for fetching fortify resources - uses: aws-actions/configure-aws-credentials@05b148adc31e091bafbaf404f745055d4d3bc9d2 # Pin to 1.6.1 - with: - role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws-region: ${{ secrets.AWS_REGION }} - role-session-name: GHAFortifySession - role-duration-seconds: 900 - - - name: Download License - run: | - aws s3 cp s3://${{ secrets.AWS_S3_FORTIFY_BUCKET }}${{ vars.LICENSE_PATH }} fortify.license - - name: Download Installer - run: | - aws s3 cp s3://${{ secrets.AWS_S3_FORTIFY_BUCKET }}${{ vars.INSTALLER_PATH }} Fortify_SCA_and_Apps_22.1.1_Mac.tar.gz - tar -xvf Fortify_SCA_and_Apps_22.1.1_Mac.tar.gz - unzip Fortify_SCA_and_Apps_22.1.1_osx_x64.app.zip - - name: Download Scripts - run: | - aws s3 cp s3://${{ secrets.AWS_S3_FORTIFY_BUCKET }}${{ vars.SCRIPTS_PATH }} fortify_scan.sh - - name: Run Installer - run: | - Fortify_SCA_and_Apps_22.1.1_osx_x64.app/Contents/MacOS/installbuilder.sh --mode unattended --installdir ~/amplify-swift/Fortify --InstallSamples 0 --fortify_license_path fortify.license --MigrateSCA 0 - export PATH=~/amplify-swift/Fortify/bin:$PATH - fortifyupdate -acceptKey - sourceanalyzer -version - - name: Run Scan - run: | - export PATH=~/amplify-swift/Fortify/bin:$PATH - sh ./fortify_scan.sh source \ No newline at end of file diff --git a/.github/workflows/integ_test.yml b/.github/workflows/integ_test.yml deleted file mode 100644 index cd1104de44..0000000000 --- a/.github/workflows/integ_test.yml +++ /dev/null @@ -1,948 +0,0 @@ -name: Integration Tests -on: - workflow_call: - workflow_dispatch: - push: - branches: [v1] - -permissions: - id-token: write - contents: read - -concurrency: - group: ${{ github.head_ref || github.run_id }} - cancel-in-progress: true - -jobs: - prepare-for-test: - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Verify copy resources - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: NA - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - analytics-integration-test: - needs: prepare-for-test - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-swift/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: analytics - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Analytics/ - workspace: AnalyticsCategoryPlugin.xcworkspace - scheme: AWSPinpointAnalyticsPluginIntegrationTests - - api-integration-test: - if: ${{ false }} - needs: prepare-for-test - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-swift/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: api - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/API/ - workspace: APICategoryPlugin.xcworkspace - scheme: AWSAPICategoryPluginFunctionalTests - - api-graphqliam-integration-test: - if: ${{ false }} - needs: [api-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: api - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/API/ - workspace: APICategoryPlugin.xcworkspace - scheme: GraphQLWithIAMIntegrationTests - - api-graphqluserpool-integration-test: - if: ${{ false }} - needs: [api-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: api - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/API/ - workspace: APICategoryPlugin.xcworkspace - scheme: GraphQLWithUserPoolIntegrationTests - - api-restiam-integration-test: - if: ${{ false }} - needs: [api-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: api - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/API/ - workspace: APICategoryPlugin.xcworkspace - scheme: RESTWithIAMIntegrationTests - - api-restuserpool-integration-test: - if: ${{ false }} - needs: [api-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: api - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/API/ - workspace: APICategoryPlugin.xcworkspace - scheme: RESTWithUserPoolIntegrationTests - - api-graphqllambda-integration-test: - if: ${{ false }} - needs: [api-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: api - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/API/ - workspace: APICategoryPlugin.xcworkspace - scheme: GraphQLWithLambdaAuthIntegrationTests - - auth-integration-test: - continue-on-error: true - needs: prepare-for-test - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: auth - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Auth/ - workspace: AWSCognitoAuthPlugin.xcworkspace - scheme: AWSCognitoAuthPluginIntegrationTests - - datastore-integration-test: - if: ${{ false }} - needs: prepare-for-test - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreCategoryPluginIntegrationTests - - datastore-integration-hub-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationHubTests - datastore-integration-local-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationLocalTests - - datastore-integration-V1-S1-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV1Scenario1Tests - - datastore-integration-V1-S2-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV1Scenario2Tests - datastore-integration-V1-S3-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV1Scenario3Tests - datastore-integration-V1-S4-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV1Scenario4Tests - datastore-integration-V1-S5-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV1Scenario5Tests - datastore-integration-V1-S6-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV1Scenario6Tests - datastore-integration-V2-S1-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario1V2Tests - datastore-integration-V2-S2-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario2V2Tests - datastore-integration-V2-S3a-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario3aV2Tests - datastore-integration-V2-S3-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario3V2Tests - datastore-integration-V2-S4-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario4V2Tests - datastore-integration-V2-S5-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario5V2Tests - datastore-integration-V2-S6-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario6V2Tests - datastore-integration-V2-S7-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario7V2Tests - datastore-integration-V2-S8-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Scenario8V2Tests - datastore-integration-V2-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationV2Tests - - datastore-integration-observe-query-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreIntegrationObserveQueryTests - - datastore-auth-integration-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreCategoryPluginAuthIntegrationTests - - datastore-flutter-integration-test: - if: ${{ false }} - needs: [datastore-integration-test] - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: datastore - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreCategoryPluginFlutterIntegrationTests - - geo-integration-test: - needs: prepare-for-test - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: geo - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Geo/ - workspace: GeoCategoryPlugin.xcworkspace - scheme: AWSLocationGeoPluginIntegrationTests - - predictions-integration-test: - continue-on-error: true - needs: prepare-for-test - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: predictions - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: List the copied configurations - run: ls ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Predictions/ - workspace: PredictionsCategoryPlugin.xcworkspace - scheme: AWSPredictionsPluginIntegrationTests - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Predictions/ - workspace: PredictionsCategoryPlugin.xcworkspace - scheme: CoreMLPredictionsPluginIntegrationTests - - storage-integration-test: - continue-on-error: true - needs: prepare-for-test - runs-on: macos-12 - environment: IntegrationTest - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Make directory - run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/ - - - name: Copy integration test resouces - uses: ./.github/composite_actions/download_test_configuration - with: - resource_subfolder: storage - aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws_region: ${{ secrets.AWS_REGION }} - aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }} - - - name: Run Integration test - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Storage/ - workspace: StoragePlugin.xcworkspace - scheme: AWSS3StoragePluginFunctionalTests diff --git a/.github/workflows/new_issue_maintainer.yml b/.github/workflows/new_issue_maintainer.yml deleted file mode 100644 index 20a648f6a1..0000000000 --- a/.github/workflows/new_issue_maintainer.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: New Issue by Maintainer - -on: - issues: - types: [opened] - -permissions: - issues: write - -jobs: - maintainer-opened: - runs-on: ubuntu-latest - if: | - !github.event.issue.pull_request && - contains(fromJSON('["palpatim", "brennanMKE", "5d", "harsh62", "thisisabhash", "ameter", "royjit", "atierian", "ukhan-amazon", "ruisebas", "phantumcode"]'), github.event.issue.user.login) || - contains(fromJSON('["drochetti", "mikepschneider", "lawmicha", "dcipoletti", "dpilch", "manueliglesias", "svidgen", "david-mcafee", "poojamat", "AaronZyLee", "marcvberg", "iartemiev", "phani-srikar", "sundersc", "alharris-at", "yeung-wah", "manaswi223"]'), github.event.issue.user.login) - steps: - - name: add message if maintainer opened - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - run: | - gh issue comment $ISSUE_NUMBER --repo aws-amplify/amplify-ios -b "This issue was opened by a maintainer of this repository; updates will be posted here. If you are also experiencing this issue, please comment here with any relevant information so that we're aware and can prioritize accordingly." diff --git a/.github/workflows/notify_issue_comment.yml b/.github/workflows/notify_issue_comment.yml deleted file mode 100644 index 5f9b592960..0000000000 --- a/.github/workflows/notify_issue_comment.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Notify Comments on Pending/Closing Soon Issues - -# Controls when the workflow will run -on: - # Triggers the workflow on comment events on pending response issues - issue_comment: - types: [created] - -# Limit the GITHUB_TOKEN permissions -permissions: {} - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "notify" - notify: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - if: ${{ !github.event.issue.pull_request && !contains(fromJSON('["palpatim", "brennanMKE", "diegocstn", "lawmicha", "harsh62", "thisisabhash", "ameter", "royjit", "atierian", "ukhan-amazon", "ruisebas", "phantumcode"]'), github.event.comment.user.login) }} - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Runs a single command using the runners shell - - name: Run webhook curl command - env: - WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }} - COMMENT: ${{toJson(github.event.comment.body)}} - 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}}"}' diff --git a/.github/workflows/notify_new_issue.yml b/.github/workflows/notify_new_issue.yml deleted file mode 100644 index e81356dc50..0000000000 --- a/.github/workflows/notify_new_issue.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Notify New Issues - -# Controls when the workflow will run -on: - # Triggers the workflow on comment events on pending response issues - issues: - types: [opened] - -# Limit the GITHUB_TOKEN permissions -permissions: {} - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "notify" - notify: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Runs a single command using the runners shell - - name: Run webhook curl command - env: - WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }} - ISSUE: ${{toJson(github.event.issue.title)}} - 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}}"}' diff --git a/.github/workflows/notify_release.yml b/.github/workflows/notify_release.yml deleted file mode 100644 index 9114080762..0000000000 --- a/.github/workflows/notify_release.yml +++ /dev/null @@ -1,29 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Notify Amplify iOS Release - -# Controls when the workflow will run -on: - # Triggers the workflow on release created (draft) or released (stable) events but only for the main branch - release: - types: [created, released] - -# Limit the GITHUB_TOKEN permissions -permissions: {} - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "notify" - notify: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Runs a single command using the runners shell - - name: Run webhook curl command - env: - WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }} - VERSION: $${{github.event.release.html_url}} - 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":"{}"}' diff --git a/.github/workflows/release_block_manual_pr.yml b/.github/workflows/release_block_manual_pr.yml deleted file mode 100644 index 6867fcac7e..0000000000 --- a/.github/workflows/release_block_manual_pr.yml +++ /dev/null @@ -1,33 +0,0 @@ -# Blocks PRs targeting the release branch that are not created by the release GHA workflow. -# -# This works because workflows cannot trigger other workflows unless they call them directly. -# As a result, this workflow will only run with a PR targeting release is manually created. -# -# https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow - -name: Block Manual PR to Release V1+ - -on: - pull_request: - branches: - - release-v1 - -permissions: - pull-requests: write - -jobs: - check: - name: Block Manual PR to Release - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - - - name: Close PR - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.pull_request.number }} - run: | - gh pr close $PR_NUMBER --comment "Invalid PR! PRs targeting the release branch must be created by the GHA release workflow." - exit 1 diff --git a/.github/workflows/release_kickoff.yml b/.github/workflows/release_kickoff.yml deleted file mode 100644 index 31b55f4cb7..0000000000 --- a/.github/workflows/release_kickoff.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Creates a PR to push main to release branch to kick-off the release workflow -name: Release Amplify iOS V1+ - -on: - workflow_dispatch: - -permissions: - pull-requests: write - -jobs: - release: - name: Release - runs-on: macos-latest - - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - - - name: Create PR to push main to release branch - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: "gh pr create --title 'chore: kickoff v1 release' --body 'kickoff v1 release' --head v1 --base release-v1" diff --git a/.github/workflows/release_merge_pr.yml b/.github/workflows/release_merge_pr.yml deleted file mode 100644 index c7123f64a1..0000000000 --- a/.github/workflows/release_merge_pr.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Validates and merges release PRs after they have been approved. -name: Merge V1 Release PR - -on: - pull_request_review: - types: - - submitted - -permissions: - contents: write - pull-requests: write - -jobs: - check: - name: Validate and Merge PR - runs-on: ubuntu-latest - if: "${{ github.event.pull_request.base.ref == 'release-v1' && github.event.pull_request.head.ref == 'v1' && github.event.pull_request.title == 'chore: kickoff v1 release' && github.event.review.state == 'approved' }}" - - steps: - - name: Merge PR - shell: bash - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR: ${{ github.event.pull_request.number }} - run: "gh pr merge $PR --repo aws-amplify/amplify-ios --merge --subject 'chore: kickoff release' --body ''" diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml deleted file mode 100644 index 344d473360..0000000000 --- a/.github/workflows/unit_test.yml +++ /dev/null @@ -1,124 +0,0 @@ -name: Unit Tests -on: - workflow_call: - workflow_dispatch: - push: - branches-ignore: - - v1 - - release-v1 - -permissions: - contents: read - -jobs: - unit-test-aws-plugins-core: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test AWSPluginsCore - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: . - workspace: Amplify.xcworkspace - scheme: AWSPluginsCore - - unit-test-analytics: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test Analytics - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Analytics/ - workspace: AnalyticsCategoryPlugin.xcworkspace - scheme: AWSPinpointAnalyticsPlugin - - unit-test-api: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test API - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/API/ - workspace: APICategoryPlugin.xcworkspace - scheme: AWSAPICategoryPlugin - - unit-test-auth: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test Auth - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Auth/ - workspace: AWSCognitoAuthPlugin.xcworkspace - scheme: AWSCognitoAuthPlugin - - unit-test-datastore: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test DataStore - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/DataStore/ - workspace: DataStoreCategoryPlugin.xcworkspace - scheme: AWSDataStoreCategoryPlugin - - unit-test-geo: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test Geo - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Geo/ - workspace: GeoCategoryPlugin.xcworkspace - scheme: AWSLocationGeoPlugin - - unit-test-predictions: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test Predictions - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Predictions/ - workspace: PredictionsCategoryPlugin.xcworkspace - scheme: CoreMLPredictionsPlugin - - unit-test-storage: - runs-on: macos-12 - steps: - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b - with: - persist-credentials: false - - - name: Unit Test Auth - uses: ./.github/composite_actions/run_xcodebuild_test - with: - project_path: ./AmplifyPlugins/Storage/ - workspace: StoragePlugin.xcworkspace - scheme: AWSS3StoragePlugin