Skip to content
skillbld
CI/CD with GitHub Actions · 12-day planAll days
Day 6 of 12 25 min

Test across several Node versions and operating systems with one job definition. Build a matrix, use its values in steps, add and remove combinations with include and exclude, and decide what happens when one combination fails.

By the end of today you can

  • Run one job across many combinations with strategy.matrix
  • Use matrix values in runs-on, with and run
  • Add and remove combinations with include and exclude
  • Control failure behaviour with fail-fast and continue-on-error
  • Explain when a matrix is worth its cost

What's inside

  • 4 sections
  • 2 diagrams and mind maps
  • 3 code examples you can run
  • 5-question quiz
  1. 1A version matrix
  2. 2Several dimensions
  3. 3Allowing a combination to fail
  4. 4When to use a matrix

Sign in free to read this lesson

Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.

Sign in free

Keep going

Day 6: Matrix Builds · CI/CD with GitHub Actions · SkillBld