Skip to content

Commit 411dfc7

Browse files
committed
Remove gradle managed device
dropbox/dropshots#31
1 parent 464db26 commit 411dfc7

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: macos-latest
1212

1313
steps:
1414
- uses: actions/checkout@v3
@@ -18,5 +18,17 @@ jobs:
1818
distribution: 'zulu'
1919
java-version: 11
2020

21+
- name: Run instrumented tests
22+
uses: reactivecircus/android-emulator-runner@v2
23+
with:
24+
api-level: 32
25+
arch: x86_64
26+
profile: pixel_5
27+
disable-animations: true
28+
force-avd-creation: false
29+
ram-size: 4096M
30+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
31+
script: ./gradlew connectedCheck --stacktrace
32+
2133
- name: Build and run tests
22-
run: ./gradlew check cascade-compose:verifyPaparazziDebug cascade-compose:allDevicesDebugAndroidTest
34+
run: ./gradlew check cascade-compose:verifyPaparazziDebug

cascade-compose/build.gradle

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,15 @@ android {
1919
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
2020
}
2121

22-
buildFeatures.compose = true
23-
composeOptions.kotlinCompilerExtensionVersion = versions.composeCompiler
24-
25-
testOptions {
26-
animationsDisabled = true
27-
managedDevices {
28-
devices {
29-
pixel2api30 (ManagedVirtualDevice) {
30-
device = "Pixel 2"
31-
apiLevel = 30
32-
systemImageSource = "aosp"
33-
}
34-
}
35-
}
22+
buildFeatures {
23+
compose = true
24+
}
25+
composeOptions {
26+
kotlinCompilerExtensionVersion = versions.composeCompiler
3627
}
37-
3828
kotlinOptions {
3929
jvmTarget = "1.8"
4030
}
41-
4231
lintOptions {
4332
abortOnError true
4433
}

0 commit comments

Comments
 (0)