☁️GitLab CI/CD
Also known as GitLab CI, .gitlab-ci.yml, GitLab Pipelines
The CI/CD tool built into GitLab. You set it up in a .gitlab-ci.yml file.
Think of it like
Think of it like a to-do list kept in the project folder. GitLab reads it and does each task when code changes.
Example
Lucy adds a .gitlab-ci.yml with a test job. Every merge request now shows a green tick or a red cross.
Why it matters
Code, reviews and pipelines live in one place, so teams need one tool, not three.
Definition
Example code
yaml
test:
image: node:22
script:
- npm ci
- npm testCommon mistake
Key takeaways
- 1One file. .gitlab-ci.yml in the project root.
- 2Stages and jobs. Jobs run inside stages.
- 3Runners run it. Hosted or your own.