Skip to content

Instantly share code, notes, and snippets.

@psilore
Last active September 14, 2025 19:00
Show Gist options
  • Select an option

  • Save psilore/701f0dfccb1d40d3f7cce709cac611a6 to your computer and use it in GitHub Desktop.

Select an option

Save psilore/701f0dfccb1d40d3f7cce709cac611a6 to your computer and use it in GitHub Desktop.
Run GitHub workflow locally with neKtos/act for faster testing

nektos/act

Run your GitHub workflows locally, for lightspeed testing your workflow script and jobs.

Example: You have created a script that checks for changes and then
creates a branch and push changes to you main branch and creates a pull request.
For some extra creme, you have created a bot that comments the PR with information
about the automated changes.

Issue: It will take time to test this in a workflow in your CI setup, since there could be
several jobs that needs to be run or even be concluded with successful status.

Solution - nektos/act, run it lightspeed faster to test locally before you push it to repository.

Dont want to mess arround with scripts?

🤖 GitHub Local Actions (Vscode extension)

Install vscode extension GitHub Local Actions

Tip! Pick any runner and start testing your workflows locally
See Runners and pick your poison.

Then add as runner in settings/options
(Can even run your own self-hosted)

Runners

Note! as of writing this, the image ubuntu:full-24.04 is in beta, so you if you use ubuntu-24.04 in your workflows.
Just add the act image in your actrc file. Its beta though, and its huge 🤷

# actrc
-P ubuntu-24.04=catthehacker/ubuntu:full-24.04

act images are slimmer, see Runners

gh extensions

Install act as a gh cli extension

gh extension install nektos/act

Upgrade gh extension

gh extension upgrade nektos/act

or just gh extension upgrade --all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment