Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A simple GitLab CI pipeline to build and test a Node.js application.
# .gitlab-ci.yml
stages:
- build
- test
build_job:
stage: build
image: node:16
script:
- npm install
- npm run build
tags:
- docker-runner
tags:
- docker-runner
test_job:
stage: test
image: node:16
script:
- npm install
- npm test
tags:
- docker-runnerGitLab CI/CD is a built-in continuous integration and delivery tool within GitLab. It automates building, testing, and deploying code using pipelines defined in a `.gitlab-ci.yml` file.
Origin & Creator
Created by GitLab Inc., first introduced in 2011 as an integrated CI/CD solution for GitLab repositories.
Industrial Note
Widely used in DevOps, agile development, cloud-native applications, microservices, automated testing, and deployment pipelines across enterprises.