Interview Prep/Git & GitHub/GitHub Actions, environments and releases in production

What is a matrix build and when do you use it?

BeginnerProductionGitHub Actions, environments and releases in production
Answer

A job strategy that expands into multiple runs across variable combinations such as OS, language version or test shard. Use fail-fast: false when you need complete results.

strategy:
  fail-fast: false
  matrix:
    node: [20, 22]
All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub Actions, environments and releases in production