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 assembleDebugAction 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.apkProGuard 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:
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:
Complete example for iOS
The following code snippet shows a complete GitHub Action to build your iOS app and test it using Maestro Cloud.
Next Steps
Advanced configuration: Learn how to configure async mode, environment variables, and custom workspaces.
Outputs and triggers: Learn how to use action outputs and configure CI triggers.
Last updated