File tree Expand file tree Collapse file tree 2 files changed +40
-49
lines changed
Expand file tree Collapse file tree 2 files changed +40
-49
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 55 branches :
66 - main
77 pull_request :
8+
89concurrency :
910 group : build-${{ github.ref }}
1011 cancel-in-progress : true
@@ -108,3 +109,42 @@ jobs:
108109 with :
109110 name : test-reports-${{ matrix.api-level }}
110111 path : ' **/build/reports/androidTests'
112+
113+ androidTest-GMD :
114+ needs : build
115+ runs-on : macOS-latest # enables hardware acceleration in the virtual machine
116+ timeout-minutes : 55
117+
118+ steps :
119+ - name : Checkout
120+ uses : actions/checkout@v3
121+
122+ - name : Copy CI gradle.properties
123+ run : mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
124+
125+ - name : Set up JDK 17
126+ uses : actions/setup-java@v3
127+ with :
128+ distribution : ' zulu'
129+ java-version : 17
130+
131+ - name : Setup Gradle
132+ uses : gradle/gradle-build-action@v2
133+
134+ - name : Setup Android SDK
135+ uses : android-actions/setup-android@v2
136+
137+ - name : Build AndroidTest apps
138+ run : ./gradlew packageDemoDebug packageDemoDebugAndroidTest
139+
140+ - name : Run instrumented tests with GMD
141+ run : ./gradlew cleanManagedDevices --unused-only &&
142+ ./gradlew ciDemoDebugAndroidTest -Dorg.gradle.workers.max=1
143+ -Pandroid.testoptions.manageddevices.emulator.gpu="swiftshader_indirect" -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true
144+
145+ - name : Upload test reports
146+ if : success() || failure()
147+ uses : actions/upload-artifact@v3
148+ with :
149+ name : test-reports
150+ path : ' **/build/reports/androidTests'
You can’t perform that action at this time.
0 commit comments