Last Updated: November 21, 2025
Focus Areas
| Focus |
|---|
Define matrix keys for OS, runtime, and tooling
|
Use `strategy.fail-fast` to stop on early failures
|
Commands & Queries
strategy.matrix.os=ubuntu-latest,windows-latest
Define OS matrix
strategy.matrix.node=14,16
Cover Node versions
actions/cache@v3
Cache dependencies per runner
Summary
Parallelize jobs without exploding matrix size and cache dependencies to keep runs short.
💡 Pro Tip:
Keep matrix dimensions small and use `strategy.include` when some combos are invalid.