This guide explains how to use nektos/act to run GitHub Actions locally on your machine for fast feedback and workflow testing.
- Docker installed and running (compatible with Linux, macOS, or Windows)
actinstalled: See the official documentation for installation instructions:
π https://github.com/nektos/act#installation
To run your default workflow locally:
actTo run a specific event:
act pull_requestTo run a specific job from your workflow file:
act -j job-nameTo run a specific workflow:
act -W workflow-file-nameTo preview what act will do without actually running the jobs:
act --dryrunCannot connect to the Docker daemon: ensure Docker is running and you are not overridingDOCKER_HOST.platform mismatch: use--container-architecture linux/amd64when needed.
| Command | Description |
|---|---|
act |
Run all jobs locally |
act -j <job> |
Run a specific job |
act -W <workflow> |
Run a specific workflow |
act pull_request |
Simulate a PR event |
act --dryrun |
Preview actions without running |