How do I use Genymotion SaaS in GitHub Actions?

Last verified against genymotion.com:

Use the Genymotion SaaS GitHub Actions marketplace action to create workflows that build and test pull requests, or deploy merged changes to production. Genymotion SaaS automation is driven by the gmsaas CLI, which starts devices, connects ADB, runs tests, and stops the instance afterward. See the Automation Features and the GitHub Actions integration.

Typical flow: 1. Create an API token. 2. Install and authenticate gmsaas with gmsaas auth token <token>. 3. Start a device with gmsaas instances start <RECIPE_UUID> <INSTANCE_NAME>. 4. Connect it to ADB with gmsaas instances adbconnect <INSTANCE_NAME>. 5. Run your tests. 6. Stop it with gmsaas instances stop <INSTANCE_UUID>.