Skip to content

Commit da5392f

Browse files
committed
Add extra step in to test specific subproject using emulator runner
1 parent 1324ba0 commit da5392f

File tree

2 files changed

+32
-23
lines changed

2 files changed

+32
-23
lines changed

.github/workflows/gradle.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ jobs:
2222
java-version: 1.8
2323
- name: Grant execute permission for gradlew
2424
run: chmod +x gradlew
25-
- name: Build with Gradle
26-
run: ./gradlew allTests connectedAndroidTest --continue -x iosTest
25+
- name: All tests excluding iosTes
26+
run: ./gradlew allTests -x iosTest
27+
- name: Run Android Instrumented Tests
28+
uses: reactivecircus/android-emulator-runner@v2
29+
with:
30+
api-level: 29
31+
target: google-apis
32+
arch: x86_64
33+
profile: Nexus 6
34+
script: ./gradlew :firebase-auth:connectedAndroidTests

firebase-auth/build.gradle.kts

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ plugins {
44
id("com.android.library")
55
kotlin("multiplatform")
66
kotlin("native.cocoapods")
7-
id("com.quittle.android-emulator") version "0.2.0"
7+
//id("com.quittle.android-emulator") version "0.2.0"
88
}
99

10-
buildscript {
11-
repositories {
12-
jcenter()
13-
google()
14-
gradlePluginPortal()
15-
}
16-
dependencies {
17-
classpath("com.android.tools.build:gradle:3.6.1")
18-
}
19-
}
10+
//buildscript {
11+
// repositories {
12+
// jcenter()
13+
// google()
14+
// gradlePluginPortal()
15+
// }
16+
// dependencies {
17+
// classpath("com.android.tools.build:gradle:3.6.1")
18+
// }
19+
//}
2020

2121
android {
2222
compileSdkVersion(property("targetSdkVersion") as Int)
@@ -44,16 +44,17 @@ android {
4444
}
4545

4646
// Optional configuration
47-
androidEmulator {
48-
emulator {
49-
name("givlive_emulator")
50-
sdkVersion(28)
51-
abi("x86_64")
52-
includeGoogleApis(true) // Defaults to false
53-
}
54-
55-
headless(true) // Defaults to false but should be set to true for most CI systems
56-
}
47+
//androidEmulator {
48+
// emulator {
49+
// name("givlive_emulator")
50+
// sdkVersion(28)
51+
// abi("x86_64")
52+
// includeGoogleApis(true) // Defaults to false
53+
//
54+
// }
55+
// headless(false)
56+
// logEmulatorOutput(false)
57+
//}
5758

5859
kotlin {
5960
js {

0 commit comments

Comments
 (0)