Action to Set a Host for Testing?

In Travis, you can configure a host domain with


Is there a similar GitHub Action that will handle this behavior?

Or is the best solution the one found at this thread?

sudo echo "" >> /etc/hosts
1 Like

Could you explain what exactly that Travis configuration is expected to do?

If you simply want to add IP/host mappings then yes, writing to /etc/hosts is the best option. Just note that the quoted command won’t work, running echo as root doesn’t change anything, the writing to /etc/hosts needs to happen as root:

echo "" | sudo tee -a /etc/hosts