Hi there! I was playing with GitHub Actions (love them so far) and came to a problem.
I’m trying to setup E2E testing for a service using testcafe. Inside my job I first start the service locally on port 3000 (should be accessible on http://localhost:3000/). After that I run my testcafe-action (Docker action with all the browsers pre-installed) which targets http://localhost:3000/.
As expected I get the following error which means that nothing is running on that address:
209 Failed to find a DNS-record for the resource at
Server is running on http://localhost:3000 of the DOCKER_HOST, which is probably not exposed to child containers. Is there any way to get a HOSTNAME of the DOCKER_HOST on which the service is running so that correct address can be targeted in such cases?
I’ve looked into services, but unfortunately they do not support local Dockerfiles (it is posible to target service). Is there some easier way to achieve what I want?