This GitHub Action allows you to run UI tests using the Maestro framework. Maestro is designed to help developers automate their app's user interface testing on Android and iOS.
This action relies on the GitHub Action - Android Emulator Runner to run the tests on an Android emulator.
This action is currently in early development. The features and API are subject to change as improvements and new capabilities are introduced. Be aware that breaking changes might occur until a stable version is released.
For now the action only supports android applications.
name: Run UI Tests with Maestro
on:
push:
branches:
- main
pull_request:
jobs:
ui-tests:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Run UI Tests with Maestro
uses: theolm/[email protected]
with:
apk-path: './path/to/your/app.apk'
test-path: 'path for the test yaml or folder'
report-name: 'report_name'
record: 'true'
Name | Description | Required | Default |
---|---|---|---|
apk-path |
The path to your application file (.apk) | Yes | - |
test-path |
Path of yaml or folder containing the maestro tests. | Yes | - |
report-name |
The name of the output report. | No | 'report' |
emulator-api |
The android sdk version running on the emulator | No | '31' |
emulator-profile |
The emulator profile AKA device | No | 'pixel_6_pro' |
emulator-ram-size |
Ram used by the emulator | No | '8000M' |
emulator-heap-size |
Heap size used by the emulator | No | '600M' |
emulator-arch |
Architecture used by the emulator | No | 'x86_64' |
emulator-disable-animations |
Disable the animations in the emulator | No | 'true' |
record |
Record the screen during the test | No | 'true' |
bit-rate |
Bit rate for the recording | No | '3000000' |
video-res |
Resolution of the recorded video | No | '360x780' |
The action will output an artifact with the report generated by Maestro and a video of the recording.
This project is licensed under the MIT License - see the LICENSE file for details.