When you run act it reads in your GitHub Actions from .github/workflows/ and determines the set of actions that need to be run. It uses the Docker API

nektos / act

submited by
Style Pass
2021-06-25 02:00:06

When you run act it reads in your GitHub Actions from .github/workflows/ and determines the set of actions that need to be run. It uses the Docker API to either pull or build the necessary images, as defined in your workflow files and finally determines the execution path based on the dependencies that were defined. Once it has the execution path, it then uses the Docker API to run containers for each action based on the images prepared earlier. The environment variables and filesystem are all configured to match what GitHub provides.

act is currently not supported with podman or other container backends (it might work, but it's not guaranteed). Please see #303 for updates.

If you are running Windows, download the latest release and add the binary into your PATH. If you are using Chocolatey then run:

When running act for the first time, it will ask you to choose image to be used as default. It will save that information to ~/.actrc, please refer to Configuration for more information about .actrc and to Runners for information about used/available Docker images.

Leave a Comment
Related Posts