Skip to content
Latchkey

Matrix Job - CI/CD Glossary Definition

A matrix job fans one job out into parallel jobs across combinations of variables.

A matrix job uses strategy.matrix to expand one job definition into many parallel jobs, one per combination of the listed variables such as language versions or operating systems.

Matrix builds test many configurations from a single job block. Each combination runs as its own job on its own runner, in parallel by default.

Example

.github/workflows/ci.yml
strategy:
  matrix:
    node: [18, 20, 22]
    os: [ubuntu-latest, windows-latest]

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →