Closed Alqueraf closed 3 years ago
Unfortunately this isn't possible right now as the emulator instance can't survive beyond the step that runs this action.
If you can run the classroom auto grading action on a macos VM you should still be able to run an emulator but you'll have to add the script that create the avd and starts the emulator instance yourself.
Thanks for the answer, I have the option to run a setup command for the auto-grading action, so will try to get some script together. Any tips on how to approach it?
You can probably find plenty of examples for doing this which people traditionally do with other CI providers.
You basically need 3 steps:
sdkmanager
binary to download the system images you need.Some scripts I've used in the past:
https://github.com/ReactiveCircus/cirrusci-android-templates#running-instrumented-tests https://github.com/ychescale9/bitrise-ui-tests-workflow/blob/main/start_emulator.sh
You could also look at the source code of this action, specifically the sdk-installer.ts
and emulator-manager.ts
.
Thanks for your explanation and resources 🙏 will give it a try!
Hi again 👋 I followed your recommendations and modified your bash file, it worked great! Thanks for your help. Sharing the template here in case anyone else has the same issue: https://github.com/Alqueraf/classroom-autograding-android
Looks great! Thanks for sharing😄
I would like to use this action along with the Github Classroom Autograding action.
My issue is that the test command/script needs to be run through the Autograding action, so I need to use this emulator-runner action just to launch the emulator device and keep it open until the workflow finishes, without using the script config.
Would that be possible?