1. Home
  2. /
  3. Gitlab-ci
  4. /
  5. Simple GitLab CI Pipeline

Simple GitLab CI Pipeline - Gitlab-ci Typing CST Test

Loading…

Simple GitLab CI Pipeline — Gitlab-ci Code

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-runner

Gitlab-ci Language Guide

GitLab 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.

Primary Use Cases

  • ▸Automated build, test, and deployment pipelines
  • ▸Continuous integration for multiple branches
  • ▸Continuous delivery to staging and production
  • ▸Parallel testing across multiple environments
  • ▸Infrastructure as code deployment automation

Notable Features

  • ▸Pipeline visualization and monitoring
  • ▸Declarative `.gitlab-ci.yml` configuration
  • ▸Auto DevOps pipelines for standard workflows
  • ▸Integration with GitLab runners and Kubernetes
  • ▸Extensible via scripts, Docker images, and templates

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.

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher