Your team wants to test a GitHub Action locally before pushing to GitHub. Which tool is specifically designed to run GitHub Actions workflows on a local machine by emulating the GitHub Actions runner environment?
- A. docker-compose
- B. act✓ Correct
- C. github-runner-local
- D. nektos/local-runner
Explanation
'act' (github.com/nektos/act) is the purpose-built open-source tool for running GitHub Actions workflows locally. It uses Docker to emulate the runner environment, reads your workflow YAML, and executes jobs on your machine. 'nektos/local-runner' is a misconception — 'act' is the actual project under the nektos organization, but it is named 'act', not 'local-runner'. 'github-runner-local' does not exist as a tool. docker-compose orchestrates multi-container Docker applications and has no awareness of GitHub Actions workflow syntax.