-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liveness integration tests #46
base: main
Are you sure you want to change the base?
Changes from all commits
3c6b81b
7ab7615
2feee2b
2cc06cf
5b0b74c
46c86a7
9601124
41f973c
108191a
02257e1
db6d97e
00d673a
4e9d9fe
40dca16
f9b618d
797ab82
fbdb4e5
094aeb8
8c07b2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Integration tests | ||
run-name: Integration tests for ${{ github.ref }} | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- 'main' | ||
merge_group: | ||
types: [checks_requested] | ||
|
||
env: | ||
AWS_REGION: "us-east-1" | ||
|
||
jobs: | ||
ci-integration-tests: | ||
permissions: | ||
id-token: write # This is required for requesting the JWT with configure-aws-credentials | ||
contents: read # This is required for actions/checkout | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3 | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2 | ||
with: | ||
role-to-assume: ${{ vars.AMPLIFY_UI_ANDROID_CI_TESTS_ROLE }} | ||
aws-region: ${{ env.AWS_REGION }} | ||
- name: Run Integration Tests | ||
uses: aws-actions/aws-codebuild-run-build@f202c327329cbbebd13f986f74af162a8539b5fd # v1 | ||
with: | ||
project-name: Amplify-UI-Android-Integration-Test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
Need to create backends for s3, pinpoint, predictions, core | ||
*/ | ||
def module_backends = [ | ||
'liveness' : 'LivenessIntegTests', | ||
] | ||
|
||
def canaryTests = [ | ||
// 'liveness' : [''], | ||
] | ||
|
||
subprojects { | ||
afterEvaluate { project -> | ||
if (module_backends.containsKey(project.name)) { | ||
task runTestsInDeviceFarm { | ||
doLast { | ||
exec { | ||
commandLine("$rootDir.path/scripts/run_test_in_devicefarm.sh") | ||
args([project.name]) | ||
} | ||
} | ||
} | ||
// task runNightlyTestsInDeviceFarmPool { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove commented-out sections |
||
// dependsOn(assembleAndroidTest) | ||
// doLast { | ||
// exec { | ||
// commandLine("$rootDir.path/scripts/run_nightly_tests_in_devicefarm_pool.sh") | ||
// args([project.name]) | ||
// } | ||
// } | ||
// } | ||
// task runCanaryInDeviceFarm { | ||
// dependsOn(assembleAndroidTest) | ||
// doLast { | ||
// for (canary in canaryTests[project.name]) { | ||
// exec { | ||
// commandLine("$rootDir.path/scripts/run_canary_in_devicefarm.sh") | ||
// args(project.name, canary) | ||
// } | ||
// } | ||
// } | ||
// } | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,11 @@ android { | |
androidResources { | ||
noCompress += "tflite" | ||
} | ||
|
||
packagingOptions { | ||
resources.excludes.add("META-INF/LICENSE.md") | ||
resources.excludes.add("META-INF/LICENSE-notice.md") | ||
} | ||
} | ||
|
||
dependencies { | ||
|
@@ -52,4 +57,11 @@ dependencies { | |
implementation(libs.tensorflow.support) | ||
|
||
testImplementation(projects.testing) | ||
androidTestImplementation(libs.amplify.auth) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this |
||
androidTestImplementation(libs.test.compose.junit) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's wrap all of these testing dependencies up in a |
||
androidTestImplementation(libs.test.androidx.monitor) | ||
androidTestImplementation(libs.test.androidx.rules) | ||
androidTestImplementation(libs.test.junit) | ||
androidTestImplementation(libs.test.mockk.android) | ||
debugImplementation(libs.debug.ui.test.manifest) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be implemented as a convention plugin an then applied in relevant projects. See here for our existing convention plugins.