# Matrix Strategy

say it: **“MAY-triks STRAT-uh-jee”** **/ˈmeɪtrɪks ˈstrætədʒi/**

Running one job across several versions or systems.

## What is **Matrix Strategy**?

A **matrix** runs the same job with different values, like several Node versions or operating systems, in parallel.

```yaml
strategy:
  matrix:
    node: [20, 22]
    os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
```

Level: Journeyman · [More GitHub Actions terms at this level](https://www.ask-codey.com/glossary?category=github-actions&level=3)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/matrix-strategy
