What is `nektos/act` and what are its limits?
IntermediateConceptCustom Actions & Reusable Workflows
Answer
act runs workflows locally in Docker containers that mimic runner images, which speeds up iteration on syntax and scripts:
act pull_request -j test --secret-file .secrets -P ubuntu-24.04=catthehacker/ubuntu:act-24.04
Limits: images differ from real runners, no real GITHUB_TOKEN or OIDC, partial support for some features (service containers, caches, artifacts, reusable workflows across repos), and Windows/macOS jobs do not run. Use it for the inner loop, verify on GitHub.
More on Custom Actions & Reusable Workflows
What are the three kinds of custom action and how do you choose?BeginnerWrite a minimal composite action that installs Node and dependencies with caching.IntermediateWhat can a composite action not do compared to a job?IntermediateHow do you pass outputs out of a composite action?IntermediateWhat does `action.yml` contain for a JavaScript action?IntermediateWhy must a JavaScript action commit its `dist/` or `node_modules`?Intermediate