Is there a way to specify virtual machine region?

Does anyone know if there is a way to specify the shared runner’s virtual machine region used for Actions jobs? I did see that they are hosted in Azure regions:

For example, is it possible to request an Ubuntu machine from westus2? The reason I need it is because I’m running some k6 API load tests (API is hosted in California), it would be nice to always have a machine from the same region so I can have consistent network latencies.

The alternatives that we considered:

  1. Use k6 Cloud. It supports running from different load zones, though it is a bit pricey at $49/month (we are a small startup, so we would like to save where possible).
  2. Use a self-hosted runner. For example, we can create an AWS VM in a specific region and always run this specific workflow on this VM.
  3. Trigger load test on AWS (EC2, Fargate, etc.) from deployment workflow and then once the load test completes, use GitHub API to continue the deployment.

Anyone have other recommendations? #2 seems to be the easiest option for now, as we would like to run it as part of the Actions deployment workflow.

Thanks in advance,

1 Like

I am afraid that I have to say there is not a way to specify region for GitHub hosted runner. I would recommend you submit a feature request in the Feedback form for GitHub Actions.

1 Like