Module 6: Advanced Workflows
In large projects, you don't want to copy-paste your YAML everywhere. Today, you'll learn how to scale your CI/CD pipelines.
Step 1: The Matrix Strategy
What if you need to test your app on Node.js 16, 18, and 20? Instead of writing three jobs, you use a matrix.
Mission: Create a workflow.yml and add a strategy section with a matrix for different Node versions.
Step 2: Reusable Workflows
You can define a workflow in one file and "call" it from another. This is the ultimate way to stay DRY (Don't Repeat Yourself).
Mission: Add a workflow_call trigger to your workflow.yml so it can be reused by other teams.
booting...