You can refer this repo where I just tried to execute simple test in github actions with dockerfile.
Additional note : I faced chrome crashing error when I passed headless and disable gpu but after passing no-sandbox option, issue not occurred.
You can check with Actions run details in same repo