'Github Actions: Docker compose healthcheck timeout doesn't seem to work

I am trying to setup mysql and node with docker-compose. On every push, I trigger an action which will build & run docker image. I try to wait until db and redis are ready but it looks like git actions doesn't respect the health check timeout as it immediately exits after creating the containers.

See it here: https://youtu.be/iKNo56qngXY

Repo link: https://github.com/axelthat2/testing_actions



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source