What does a matrix containing node-version: [18, 20, 22] do to a single build job?
node-version: [18, 20, 22]
build
It creates three independent workflow files in the repository.
It adds three sequential setup steps to one unchanged job.
It creates three job variations, one for each Node.js version.
It selects only version 22 because it is the largest value.