Examples
Browse real-world examples of Flughafen workflows in the examples directory.
Available Examples
Basic Examples
- Basic Workflow Reference - Simple workflow with job references
- Enhanced Workflow References - Advanced workflow composition patterns
- Clean Workflow - Minimal example showing core concepts
Comment Demos
- Job Comments - Adding documentation to jobs
- Step Comments - Documenting individual steps
- Local Action Comments - Custom action documentation
Validation Examples
- Demo Validation - Showcasing validation features
- Simple Validation - Basic validation patterns
- TypeScript Errors - Type-safety demonstrations
Real-World Examples
Real .github folders from popular open-source projects in the real-world-examples directory:
- Next.js - Reusable workflows and complex build/test pipelines from Vercel
- VS Code - Enterprise-grade workflows from Microsoft
- React - Advanced React ecosystem workflows from Facebook
- TypeScript - Language tooling workflows from Microsoft
- Kubernetes - Massive-scale testing and validation workflows
These examples demonstrate industry best practices for:
- Reusable workflows (
workflow_call) - Multi-platform builds and matrix strategies
- Deployment patterns and security workflows
- Complex dependency management
Running Examples
You can run any example using the Flughafen CLI:
bash
# Validate an example
flughafen validate examples/clean-workflow.ts
# Build an example to YAML
flughafen build examples/clean-workflow.ts
# Generate types for actions used
flughafen generate types examples/clean-workflow.tsSee the CLI Documentation (link available in repository) for all available commands.