thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

DevOps & Automation · Intermediate

Matrix Strategy

A CI feature that runs the same job multiple times across combinations of variables such as OS and language version.

Definition

In GitHub Actions, strategy.matrix generates jobs for each combination, with include/exclude, fail-fast, and max-parallel controls. GitLab offers parallel:matrix.

Example

matrix: { python: ['3.11','3.12'], os: [ubuntu-latest, windows-latest] } creates four jobs.

Exam tip

fail-fast defaults to true, cancelling other matrix jobs when one fails.

Related terms