File tree Expand file tree Collapse file tree 2 files changed +9
-36
lines changed Expand file tree Collapse file tree 2 files changed +9
-36
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,15 @@ jobs:
51
51
- name : Compile AndroidTests
52
52
run : ./gradlew compileDebugAndroidTestKotlin
53
53
54
- - name : Run all tests pixel 2 api 31 ATD
55
- working-directory : .
56
- run : ./gradlew -Pandroid.sdk.channel=3 -Pandroid.experimental.androidTest.numManagedDeviceShards=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" pixel2api31atdDebugAndroidTest
57
-
58
- - name : Run all tests pixel 2 api 31 non-ATD
59
- working-directory : .
60
- run : ./gradlew -Pandroid.sdk.channel=3 -Pandroid.experimental.androidTest.numManagedDeviceShards=1 -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" pixel2api31DebugAndroidTest
54
+ - name : Run instrumentation tests
55
+ uses : reactivecircus/android-emulator-runner@v2
56
+ with :
57
+ api-level : 31
58
+ arch : x86_64
59
+ disable-animations : true
60
+ disk-size : 2000M
61
+ heap-size : 600M
62
+ script : ./gradlew connectedDebugAndroidTest
61
63
62
64
- name : Upload build reports
63
65
if : always()
Original file line number Diff line number Diff line change @@ -83,35 +83,6 @@ android {
83
83
composeOptions {
84
84
kotlinCompilerExtensionVersion " $composeCompilerVersion "
85
85
}
86
-
87
- testOptions {
88
- devices {
89
- pixel2api31atd(com.android.build.api.dsl.ManagedVirtualDevice ) {
90
- // Use device profiles you typically see in Android Studio
91
- device = " Pixel 2"
92
- apiLevel = 31
93
- // You can also specify "google" if you require Google Play Services.
94
- systemImageSource = " aosp-atd"
95
- }
96
- pixel2api31(com.android.build.api.dsl.ManagedVirtualDevice ) {
97
- // Use device profiles you typically see in Android Studio
98
- device = " Pixel 2"
99
- apiLevel = 31
100
- // You can also specify "google" if you require Google Play Services.
101
- systemImageSource = " aosp"
102
- }
103
- pixel2api27(com.android.build.api.dsl.ManagedVirtualDevice ) {
104
- device = " Pixel 2"
105
- apiLevel = 27
106
- systemImageSource = " aosp"
107
- }
108
- nexus9api29(com.android.build.api.dsl.ManagedVirtualDevice ) {
109
- device = " Nexus 9"
110
- apiLevel = 29
111
- systemImageSource = " aosp"
112
- }
113
- }
114
- }
115
86
}
116
87
117
88
/*
You can’t perform that action at this time.
0 commit comments