Skip to content

Commit

Permalink
Remove gradle managed device
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Jan 23, 2023
1 parent 464db26 commit 411dfc7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
Expand All @@ -18,5 +18,17 @@ jobs:
distribution: 'zulu'
java-version: 11

- name: Run instrumented tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 32
arch: x86_64
profile: pixel_5
disable-animations: true
force-avd-creation: false
ram-size: 4096M
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -no-snapshot-save
script: ./gradlew connectedCheck --stacktrace

- name: Build and run tests
run: ./gradlew check cascade-compose:verifyPaparazziDebug cascade-compose:allDevicesDebugAndroidTest
run: ./gradlew check cascade-compose:verifyPaparazziDebug
21 changes: 5 additions & 16 deletions cascade-compose/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,15 @@ android {
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}

buildFeatures.compose = true
composeOptions.kotlinCompilerExtensionVersion = versions.composeCompiler

testOptions {
animationsDisabled = true
managedDevices {
devices {
pixel2api30 (ManagedVirtualDevice) {
device = "Pixel 2"
apiLevel = 30
systemImageSource = "aosp"
}
}
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = versions.composeCompiler
}

kotlinOptions {
jvmTarget = "1.8"
}

lintOptions {
abortOnError true
}
Expand Down

0 comments on commit 411dfc7

Please sign in to comment.