A version matrix runs the same job for several combinations of parameters, for example several versions of a language or several operating systems. Declared under strategy.matrix, it verifies compatibility without duplicating the workflow.
Example
strategy:
matrix:
node: [20, 22]