File tree Expand file tree Collapse file tree 3 files changed +27
-17
lines changed Expand file tree Collapse file tree 3 files changed +27
-17
lines changed Original file line number Diff line number Diff line change @@ -79,17 +79,29 @@ jobs:
7979 path : ~/.android/gradle/avd/dev29_aosp_x86_Pixel_2.*
8080 key : pixel2api29
8181
82+ - name : Cache pixel2api26 system image
83+ uses : actions/cache@v2
84+ with :
85+ path : ~/.android/gradle/avd/dev26_aosp_x86_Pixel_2.*
86+ key : pixel2api26
87+
88+ - name : Cache nexus9api29 system image
89+ uses : actions/cache@v2
90+ with :
91+ path : ~/.android/gradle/avd/dev29_aosp_x86_Nexus_9.*
92+ key : nexus9api29
93+
8294 - name : Run all tests
8395 working-directory : ${{ env.SAMPLE_PATH }}
84- run : ./gradlew pixel2api29DebugAndroidTest
85-
86- # - name: Run regression tests
87- # working-directory: ${{ env.SAMPLE_PATH }}
88- # run: ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26
89- #
90- # - name: Run large screen tests
91- # working-directory: ${{ env.SAMPLE_PATH }}
92- # run: ./gradlew -i nexus9api29DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen
96+ run : ./gradlew pixel2api29DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.notAnnotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen
97+
98+ - name : Run regression tests
99+ working-directory : ${{ env.SAMPLE_PATH }}
100+ run : ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26
101+
102+ - name : Run large screen tests
103+ working-directory : ${{ env.SAMPLE_PATH }}
104+ run : ./gradlew -i nexus9api29DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceLargeScreen
93105
94106 - name : Upload test reports
95107 if : always()
Original file line number Diff line number Diff line change 1- import com.android.build.api.dsl.ManagedVirtualDevice
2-
31plugins {
42 id ' com.android.application'
53 id ' org.jetbrains.kotlin.android'
@@ -50,21 +48,21 @@ android {
5048
5149 testOptions {
5250 devices {
53- pixel2api29(ManagedVirtualDevice ) {
51+ pixel2api29(com.android.build.api.dsl. ManagedVirtualDevice ) {
5452 // Use device profiles you typically see in Android Studio
5553 device = " Pixel 2"
5654 apiLevel = 29
5755 // You can also specify "google" if you require Google Play Services.
5856 systemImageSource = " aosp"
5957 abi = " x86"
6058 }
61- pixel2api26(ManagedVirtualDevice ) {
59+ pixel2api26(com.android.build.api.dsl. ManagedVirtualDevice ) {
6260 device = " Pixel 2"
6361 apiLevel = 26
6462 systemImageSource = " aosp"
6563 abi = " x86"
6664 }
67- nexus9api29(ManagedVirtualDevice ) {
65+ nexus9api29(com.android.build.api.dsl. ManagedVirtualDevice ) {
6866 device = " Nexus 9"
6967 apiLevel = 29
7068 systemImageSource = " aosp"
Original file line number Diff line number Diff line change 1616
1717buildscript {
1818 ext {
19- kotlin_version = ' 1.5.21 '
20- compose_version = ' 1.0.2 '
19+ kotlin_version = ' 1.5.31 '
20+ compose_version = ' 1.0.4 '
2121 activity_compose_version = ' 1.3.1'
2222 material_version = ' 1.4.0'
2323 junit_version = ' 1.1.3'
@@ -29,7 +29,7 @@ buildscript {
2929 }
3030
3131 dependencies {
32- classpath ' com.android.tools.build:gradle:7.1 .0-alpha11 '
32+ classpath ' com.android.tools.build:gradle:7.2 .0-alpha02 '
3333 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
3434 }
3535}
You can’t perform that action at this time.
0 commit comments