- Act repository
- Act usage guide
- How to Run GitHub Actions Locally Using the act CLI Tool
- A guide to using act with GitHub Actions
Running a full workflow
act -W act -W .github/workflows/hello.yamlList all available workflows and its jobs
act -lList jobs for specific workflow
act -l -W .github/workflows/hello.yamlRun single job
act -W .github/workflows/hello.yaml -j welcome
push - default event used
act -W .github/workflows/events.yamlpush with defined event data
act -W .github/workflows/events.yaml -e events/push.jsonpull_request
act pull_request -W .github/workflows/events.yamlpull_request with defined event data
Opened PR
act pull_request -W .github/workflows/events.yaml -e events/pull_request.opened.jsonLabeled PR
act pull_request -W .github/workflows/events.yaml -e events/pull_request.labeled.jsonsheduled
act scheduled -W .github/workflows/events.yamlFirst run without cache server
act -W .github/workflows/cache.yamlInstallation: github-act-cache-server
Environment variables used in the .actrc
--env ACTIONS_CACHE_URL=http://127.0.0.1:8080/
--env ACTIONS_RUNTIME_URL=http://127.0.0.1:8080/
--env ACTIONS_RUNTIME_TOKEN=foo
act -W .github/workflows/skip-job.yaml -e events/push.jsonadd "act": true into `events/push.json and re-run
Replace actions/setup-node with the local mock
act -W .github/workflows/cache.yaml --local-repository https://github.com/actions/setup-node@v4=./fake-setup-node