-
-
Notifications
You must be signed in to change notification settings - Fork 759
Testing GitHub Actions Locally with act
act allows you to run GitHub Actions locally using Docker — exactly as they run on GitHub’s infrastructure. This helps debug workflows quickly without committing or pushing code.
Before running locally, make sure you have:
- Docker — running and available in your environment
- act — installed globally
brew install act # macOS
scoop install act # Windows
sudo apt install act # Linux (via apt repository)act cannot read GitHub secrets automatically, so you’ll need a local file to define them.
Create a .secrets file by copying the .secrets.example.
cp .secrets.example .secretsYou can trigger a workflow manually using act:
act <event_name> -e <path_to_event_json_payload> -W <path_to_workflow_yml>For example:
act pull_request \
-e .github/test-events/dependabot-pr.json \
-W .github/workflows/move-dependency-pr-to-code-review.ymlArguments explained:
- pull_request → GitHub event type you want to simulate
- e → path to a JSON file containing event payload (mock PR data)
- W → path to a specific workflow file to run
act uses Docker images to mimic GitHub runners. Use a larger image if you need a full Ubuntu environment:
act -P ubuntu-latest=catthehacker/ubuntu:act-latestTo print detailed logs:
act -vYou can list all available jobs in your workflow:
act -lDevelopment environment setup
- Pipeline development process
- Bug severity
- Feature template (epic)
- Internationalisation (i18n)
- Dependency updates
Development
- Developer Guidelines
- The process of review, test, merge and deploy
- Making a great commit
- Making a great pull request
- Code Conventions
- Database migrations
- Testing and Rspec Tips
- Testing GitHub Actions Locally with act
- Automated Testing Gotchas
- Rubocop
- Angular and OFN
- Feature toggles
- Stimulus and Turbo
Testing
- Testing process
- OFN Testing Documentation (Handbooks)
- Continuous Integration
- Parallelized test suite with knapsack
- Karma
Releasing
Specific features
Data and APIs
- API documentation
- Authentication
- Integration & API
- Data migration
- Data model diagram (ERD)
- Stripe
- DFC Guide
Instance-specific configuration
External services
Design