title: Running localhost server for Unit Tests executed through GitHub Actions
body: <p>I have the following GitHub workflow for building my project</p>
  <pre><code>name: build
  
  on: [push]
  
  jobs:
    build:
  
      runs-on: ubuntu-latest
  
      steps:
      - uses: actions/checkout@v2
      - name: set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
      - name: Build with Maven
        run: mvn clean compile test
  </code></pre>
  <p>The build works just fine.
  However the project JUnit test require that a localhost server is listening on port 4444 ... and I get the following error:</p>
  <blockquote>
  <p>Connection refused: localhost/127.0.0.1:4444</p>
  </blockquote>
  <p>The server is spun up before each JUnit test and is part of the tests suite.</p>
  <p>How do I tell the docker container that network connections are allowed on this port?
  Or are there any open ports by default?</p>