61 lines
1.7 KiB
YAML
61 lines
1.7 KiB
YAML
name: DataStore TransformerV2 Tests
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [main]
|
|
|
|
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 }}
|
|
|
|
datastore-integration-v2-test:
|
|
continue-on-error: true
|
|
timeout-minutes: 30
|
|
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/Tests/DataStoreHostApp
|
|
scheme: AWSDataStorePluginV2Tests
|
|
|
|
|