From 92d924034c3892b374aa767c06c3c36b969a7f62 Mon Sep 17 00:00:00 2001 From: Osma Suominen Date: Tue, 25 May 2021 15:22:41 +0300 Subject: [PATCH] Use host networking, to be able to access services on the host or service containers --- phpunit-action.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/phpunit-action.bash b/phpunit-action.bash index 70bacc4..cdc9fb8 100755 --- a/phpunit-action.bash +++ b/phpunit-action.bash @@ -90,5 +90,6 @@ docker run --rm \ --volume "${github_action_path}/phpunit.phar":/usr/local/bin/phpunit \ --volume "${GITHUB_WORKSPACE}":/app \ --workdir /app \ + --network host \ --env-file <( env| cut -f1 -d= ) \ ${docker_tag} "${command_string[@]}"