Skip to content

Commit

Permalink
Enable Orchestrator for CI (#401)
Browse files Browse the repository at this point in the history
* Enable Orchestrator for CI

* Use newest orchestrator

* Increase timeout to 60 min
  • Loading branch information
Sloy authored May 27, 2021
1 parent 0e7d78e commit f9d4c72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
test:
needs: build
runs-on: macOS-latest # enables hardware acceleration in the virtual machine
timeout-minutes: 30
timeout-minutes: 60

steps:
- name: Checkout
Expand Down
8 changes: 6 additions & 2 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ android {
targetSdkVersion compileSdkVersionDeclared
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
testInstrumentationRunnerArguments clearPackageData: 'true'
}
buildTypes {
release {
Expand All @@ -23,8 +26,8 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
vectorDrawables.useSupportLibrary = true
testOptions {
execution 'ANDROIDX_TEST_ORCHESTRATOR'
}
}

Expand All @@ -38,6 +41,7 @@ dependencies {
implementation 'com.google.android.material:material:1.2.0'
implementation 'androidx.core:core-ktx:1.0.1'

androidTestUtil 'androidx.test:orchestrator:1.3.0'
androidTestImplementation project(':library')
androidTestImplementation "org.assertj:assertj-core:2.9.1"
androidTestImplementation "com.nhaarman:mockito-kotlin:1.5.0"
Expand Down

0 comments on commit f9d4c72

Please sign in to comment.