GitLab CI/CD 1 · Caching, artifacts and ordering
Run a job for several versions
Create one job per variable combination.
test-job:
parallel:
matrix:
- NODE_VERSION: ["22", "24"]
image: node:$NODE_VERSION
script:
- npm test
Official GitLab CI/CD 1 documentation
More caching, artifacts and ordering commands
- Cache dependencies
- Pass files to later jobs
- Start a job as soon as dependencies finish
- Start a database for tests
- Show test results in merge requests
All caching, artifacts and ordering commands · GitLab CI/CD 1 cheatsheet