I am planning to move our Travis CI build to GitHub Actions using Docker for our per-commit testing.
Can I reproducibly run these new GitHub Actions workflows locally? I
You can use nektos/act which supports yaml syntax since 0.2.0 (prerelease).
Check out their latest release.
your best bet is https://github.com/nektos/act however it doesn't support yaml syntax yet, though there is a lot of interest aka: https://github.com/nektos/act/issues/80 https://github.com/nektos/act/issues/76 and https://github.com/nektos/act/issues/74
Gitlab has gitlab-runner exec docker job-name
but that's Gitlab :)
There are tools like the already-mentioned act, but they are not perfect. You are not alone with this issue. Similar problems are:
And my solution for these problems is:
run: your command to run