shapehq / tartelet

⚙️💻 A macOS app that makes it a breeze to manage multiple GitHub Actions runners in ephemeral virtual machines on a single host machine. The benefits are that runners can run in parallel, and each job runs in an isolated environment.
MIT License
501 stars 15 forks source link

Checks if virtual machine can be started #74

Closed simonbs closed 3 months ago

simonbs commented 3 months ago

Only start a virtual machine if it reports that it can be started.

This addresses an issue where Tartelet would crash on launch if "Start Virtual Machines on App Launch" was enabled but no virtual machine was selected. In this case, Tartelet would crash with the following error:

Cannot get the name of the virtual machine because none has been selected in settings

Types conforming to the VirtualMachine protocol must now specify if the virtual machine can be started, and as such, SettingsVirtualMachine can specify that it cannot be started if no valid setting has been selected.