Running your workflows locally
Committing workflows every time and running them on the server can be a slow process, especially for complex workflows. In this recipe, we will learn how to run a workflow locally using act (https://github.com/nektos/act).
Getting ready…
Act depends on Docker to run workflows. Make sure you have Docker running.
You can install act using different package managers (see https://github.com/nektos/act#installation-through-package-managers). Just pick the one that fits your environment and follow the instructions.
When running act for the first time, it will ask you to choose a Docker image to be used as the default. It will save that information to ~/.actrc
. There are different images available. There are small images available (node:16-buster-slim
) that will only support NodeJS and nothing more. The big images are more than 18 GB in size. Keep that in mind. However, with today’s disk space and internet, you will get the best results...