Matrix
A job with matrix: runs once per combination of values. The compiler expands it into one job per instance, named after its values: test (linux, 1.22).
matrix:is a map from keys to lists of values, or a list of such maps. Each map expands into every combination of its values, the first key outermost, and the instances are all of them, in order. A single value needs no list. There's noincludeorexclude: an instance that differs is another entry of the list.- Values are strings as written:
1.20stays"1.20". matrix.<key>is a CELstringanywhere in the job:image,runs-on,env,if, services and steps. A key that only some entries set can't be read.fail_fast: truecancels the other instances when one fails, andmax_parallelruns at most that many at once.needs: [test]waits for every instance and gets all their files.jobs.test.resultreads the matrix as one:failureif any instance failed, elsecancelledif any was cancelled, elseskippedif all were skipped, elsesuccess.- At most 256 instances per job, and 512 jobs per pipeline once expanded.