act Local GitHub Actions Runner by agentskillexchange/skills
npx skills add https://github.com/agentskillexchange/skills --skill 'act Local GitHub Actions Runner'act 是一个开源的 CLI 工具,它使用 Docker 在本地运行 GitHub Actions 工作流,从而无需推送到 GitHub 即可快速获得工作流更改的反馈。它在 GitHub 上拥有超过 57,000 颗星,是本地 Actions 开发和测试的标准工具。
act 是一个开源的命令行工具,可在您的本地机器上执行 GitHub Actions 工作流,项目地址为 github.com/nektos/act,拥有超过 57,000 颗 GitHub 星。它的口号是“全局思考,本地行动”——它会读取您的 .github/workflows/ 目录,解析作业和步骤之间的依赖关系图,并在复制 GitHub 托管运行器环境的 Docker 容器中运行每个 action。
其主要用例是在工作流开发过程中获得快速反馈。如果没有 act,测试工作流更改需要提交、推送、等待 GitHub 拾取作业并观察运行完成——每次迭代可能需要几分钟的循环。使用 act,开发人员可以在几秒钟内在本地运行工作流,并立即在终端中看到输出。环境变量、文件系统布局和可用工具的配置都与 GitHub 在其托管运行器上提供的相匹配。
act 也可用作本地任务运行器。已经将构建、测试和部署步骤定义为 GitHub Actions 的开发人员可以使用 act 在本地执行这些相同的工作流,从而无需维护单独的 Makefile 或任务运行器配置。同一个工作流文件驱动着 CI 和本地开发。
该工具使用 Docker API 拉取或构建工作流文件中指定的镜像,然后根据依赖关系图按顺序执行每个步骤。它支持工作流功能,包括矩阵策略、具有 needs 的作业依赖关系、环境变量和密钥(通过 .env 文件或命令行标志传递)、使用 if 表达式的条件执行以及复合 action。同时支持 Docker 容器 action 和 JavaScript action。
可以通过 Homebrew、winget、scoop、chocolatey、pacman、nix 和 Go install 进行安装。一个名为 GitHub Local Actions 的 VS Code 扩展提供了从编辑器内运行 act 的图形界面。该工具要求主机上已安装并运行 Docker。
对于专注于 CI/CD 开发、工作流验证或管道调试的代理技能,act 可以在推送更改之前在本地测试 GitHub Actions。代理可以修改工作流文件,使用 act 在本地运行以验证其通过,然后才提交并推送经过验证的更改。这极大地缩短了 CI/CD 开发的迭代时间,并在配置错误到达远程仓库之前将其捕获。
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner -a claude-code
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner -a cursor
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner -a codex
clawhub install act-local-github-actions-runner
每周安装次数
–
代码仓库
GitHub 星标数
1
首次出现时间
–
安全审计
act is an open-source CLI tool that runs GitHub Actions workflows locally using Docker, enabling fast feedback on workflow changes without pushing to GitHub. With 57,000+ stars on GitHub, it is the standard tool for local Actions development and testing.
act is an open-source command-line tool that executes GitHub Actions workflows on your local machine, available at github.com/nektos/act with over 57,000 GitHub stars. Its tagline is “Think globally, act locally” — it reads your .github/workflows/ directory, resolves the dependency graph between jobs and steps, and runs each action in Docker containers that replicate the GitHub-hosted runner environment.
The primary use case is fast feedback during workflow development. Without act, testing a workflow change requires committing, pushing, waiting for GitHub to pick up the job, and watching the run complete — a cycle that can take minutes per iteration. With act, developers run the workflow locally in seconds and see the output immediately in their terminal. The environment variables, filesystem layout, and available tools are configured to match what GitHub provides on its hosted runners.
act also serves as a local task runner. Developers who already define their build, test, and deploy steps as GitHub Actions can use act to execute those same workflows locally, eliminating the need to maintain a separate Makefile or task runner configuration. The same workflow file drives both CI and local development.
The tool uses the Docker API to pull or build the images specified in workflow files, then executes each step in order based on the dependency graph. It supports workflow features including matrix strategies, job dependencies with needs, environment variables and secrets (passed via .env files or command flags), conditional execution with if expressions, and composite actions. Docker container actions and JavaScript actions are both supported.
Installation is available through Homebrew, winget, scoop, chocolatey, pacman, nix, and Go install. A VS Code extension called GitHub Local Actions provides a graphical interface for running act from within the editor. The tool requires Docker to be installed and running on the host machine.
For agent skills focused on CI/CD development, workflow validation, or pipeline debugging, act enables local testing of GitHub Actions before pushing changes. An agent can modify a workflow file, run it locally with act to verify it passes, and only then commit and push the validated change. This dramatically reduces the iteration time for CI/CD development and catches configuration errors before they reach the remote repository.
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner -a claude-code
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner -a cursor
npx skills add agentskillexchange/skills --skill act-local-github-actions-runner -a codex
clawhub install act-local-github-actions-runner
Weekly Installs
–
Repository
GitHub Stars
1
First Seen
–
Security Audits
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
114,200 周安装