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.

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

Level: Journeyman · More GitHub Actions terms at this level

Updated