Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix maestro install and emulator boot
  • Loading branch information
krystofwoldrich committed Oct 18, 2024
commit 26ff65e344d36ac49bfdc0f22e77de748d23ee03
32 changes: 24 additions & 8 deletions .github/workflows/integration-tests-ui-critical.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
BUILD_PATH: "build/outputs/apk/release"
APK_NAME: "sentry-uitest-android-critical-release.apk"
APK_ARTIFACT_NAME: "sentry-uitest-android-critical-release"
MAESTRO_VERSION: "1.39.0"

jobs:
build:
Expand Down Expand Up @@ -70,15 +71,30 @@ jobs:
name: ${{env.APK_ARTIFACT_NAME}}

- name: Install Maestro
run: |
brew tap mobile-dev-inc/tap
brew install maestro
run: curl -Ls "https://get.maestro.mobile.dev" | bash

- name: Run Maestro tests
run: |
maestro test \
"${{env.BASE_PATH}}/maestro" \
--debug-output "${{env.BASE_PATH}}/maestro-logs"
- name: Run tests
uses: reactivecircus/android-emulator-runner@f0d1ed2dcad93c7479e8b2f2226c83af54494915 # [email protected]
with:
api-level: 30
force-avd-creation: false
disable-animations: true
disable-spellchecker: true
target: 'aosp_atd'
channel: canary # Necessary for ATDs
emulator-options: >
-no-window
-no-snapshot-save
-gpu swiftshader_indirect
-noaudio
-no-boot-anim
-camera-back none
-camera-front none
-timezone US/Pacific
script: |
maestro test \
"${{env.BASE_PATH}}/maestro" \
--debug-output "${{env.BASE_PATH}}/maestro-logs"

- name: Upload Maestro test results
if: failure()
Expand Down