Skip to content

Commit 1d3a8cb

Browse files
authored
chore(datastore): enable TransformerV2 tests in CI (#2540)
* chore(datastore): test run V2 Integ tests on main * chore(datastore): fix project path * change path * Update integ_test_datastore_v2.yml * increase time-out for V2 Tests from 15 to 25 * increase timeout to 20mins & check * timeout- 17 mins * timeout back to 20mins * chore(datastore): enable TransformerV2 Tests in CI
1 parent 5bfaf21 commit 1d3a8cb

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: DataStore TransformerV2 Tests
2+
on:
3+
push:
4+
branches: [main]
5+
6+
permissions:
7+
id-token: write
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
prepare-for-test:
16+
runs-on: macos-12
17+
environment: IntegrationTest
18+
steps:
19+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
20+
with:
21+
persist-credentials: false
22+
23+
- name: Verify copy resources
24+
uses: ./.github/composite_actions/download_test_configuration
25+
with:
26+
resource_subfolder: NA
27+
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
28+
aws_region: ${{ secrets.AWS_REGION }}
29+
aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }}
30+
31+
datastore-integration-v2-test:
32+
continue-on-error: true
33+
timeout-minutes: 20
34+
needs: prepare-for-test
35+
runs-on: macos-12
36+
environment: IntegrationTest
37+
steps:
38+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
39+
with:
40+
persist-credentials: false
41+
42+
- name: Make directory
43+
run: mkdir -p ~/.aws-amplify/amplify-ios/testconfiguration/
44+
45+
- name: Copy integration test resouces
46+
uses: ./.github/composite_actions/download_test_configuration
47+
with:
48+
resource_subfolder: datastore
49+
aws_role_to_assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
50+
aws_region: ${{ secrets.AWS_REGION }}
51+
aws_s3_bucket: ${{ secrets.AWS_S3_BUCKET_INTEG }}
52+
53+
- name: Run Integration test
54+
uses: ./.github/composite_actions/run_xcodebuild_test
55+
with:
56+
project_path: ./AmplifyPlugins/DataStore/Tests/DataStoreHostApp
57+
scheme: AWSDataStorePluginV2Tests
58+
59+

0 commit comments

Comments
 (0)