Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Platform guides

Set up Maestro Cloud GitHub Actions for Android, iOS, and Flutter.

This guide covers platform-specific configurations for setting up Maestro Cloud GitHub Actions.

To run tests on Android, you generally need to build an ARM compatible APK (typically a debug build) and upload it to Maestro Cloud.

Build command

Use Gradle to assemble your debug APK before the Maestro step.

- uses: actions/setup-java@v3
  with:
    java-version: 11
    distribution: 'temurin'

- run: ./gradlew assembleDebug

Action configuration

Point the app-file to your generated APK.

- uses: mobile-dev-inc/action-maestro-cloud@v2.0.2
  with:
    api-key: ${{ secrets.MAESTRO_API_KEY }}
    project-id: ${{ secrets.MAESTRO_PROJECT_ID }}
    app-file: app/build/outputs/apk/debug/app-debug.apk

The app-file path supports glob patterns. If multiple files match, the first one is used.

ProGuard deobfuscation

If your app uses ProGuard/R8, you should upload the mapping file to deobfuscate performance traces and error logs.

Specifying the Android OS version and device

The default API level on Maestro Cloud is 33 (Android 13). You can override the OS version and the device model using device-os and device-model:

The android-api-level input is deprecated in favor of device-os. Run maestro list-cloud-devices to see all supported Android device models and OS versions.

Complete example for Android

The following code snippet shows a complete GitHub Action to build your Android app and test it using Maestro Cloud.

To run tests on iOS, you must build your app for the iOS Simulator. Real device builds (ARM64 only) are not supported on the Cloud emulators.

Build command

You must specify -destination 'generic/platform=iOS Simulator' to ensure the build is compatible with Maestro Cloud simulators.

Action configuration

Point the app-file to the .app bundle generated in your build directory.

Uploading symbol files (.dSYM)

To get symbolicated stack traces, include the generated .dSYM file.

Specify the iOS Version and device

The default iOS version is 16. You can specify a different OS version or device model if needed, using device-os and device-model respectively:

The ios-version input is deprecated in favor of device-os. Run maestro list-cloud-devices to see all supported iOS device models and OS versions.

Complete example for iOS

The following code snippet shows a complete GitHub Action to build your iOS app and test it using Maestro Cloud.

Flutter requires specific build flags to generate binaries compatible with Maestro Cloud.

Flutter Android

Build the APK in debug mode.

Flutter iOS

Build the iOS app for the simulator.

Next Steps

Last updated