How to fix 'Socket hang up' in github actions

I am currently conducting a CI test.

My Github action’s Plan is as follows:

Basci Environment : ubuntu-latest (18.04)

  1. docker-compose up
  2. node setup (10.x)
  3. Install dependencies
  4. test (by jest)

The test is successful in my computer environment.
However, errors continue to occur in github runner.

What should i do to solve the problem below?

@jeongbin-park ,

You can try to set up a service container with the image for the job in your workflow.
You can use service containers to connect databases, web services, memory caches, and other tools to your workflow.

To view more details about creating service containers, you can see: