Overview
Forge uses GitHub Actions for continuous integration and delivery. The CI/CD pipeline includes automated testing, multi-platform builds, release management, and distribution across multiple channels.CI Workflow
The main CI workflow runs on pull requests and pushes to main, performing comprehensive testing and validation.Workflow Configuration
From.github/workflows/ci.yml:18:
Build and Test Job
Performance Benchmarks
The CI includes performance tests to ensure the ZSH rprompt renders quickly:Release Workflow
Multi-Platform Builds
Forge builds for multiple platforms using a matrix strategy:Build Steps
Multi-Channel Release
From.github/workflows/release.yml:18, Forge publishes to multiple distribution channels:
NPM Release
Homebrew Release
Using Forge in Your Workflows
Basic Setup
Example: AI-Powered Code Review
Example: Automated Testing
Example: Release Automation
Secrets Configuration
Required secrets for Forge workflows:API Keys
Distribution Tokens
Setting Secrets
Best Practices
Caching
Cache dependencies to speed up builds:Conditional Execution
Run jobs only when needed:Concurrency Control
Prevent duplicate workflow runs:Troubleshooting
Build fails on specific platform
Build fails on specific platform
Check the build logs for platform-specific errors:
- Navigate to Actions tab
- Click on failed workflow run
- Click on failed job
- Expand failed step
- Missing dependencies: Add to workflow
- Platform-specific code: Add conditional compilation
- Toolchain issues: Update Rust version
Secrets not available
Secrets not available
Verify secrets are configured:
- Settings → Secrets and variables → Actions
- Check secret names match exactly
- Ensure secrets are available to workflows
Release artifacts missing
Release artifacts missing
Check the release job dependencies:Verify artifacts are uploaded:
Next Steps
Automation
Learn about CI/CD automation strategies
Configuration
Configure Forge for your workflow
ZSH Plugin
Set up local development workflow
Quickstart
Get started with Forge