Skip to content

Palindrome.js GitLab CI Pipeline

yacoubii edited this page Sep 3, 2024 · 1 revision

Overview

This documentation outlines the structure and functionality of the GitLab CI pipeline for Palindrome.js. The pipeline consists of three stages: Build, Test, and Deploy. Each stage performs specific tasks related to the development, testing, and deployment of the Palindrome.js application.

image.png

Stages

1. Build (build-dev Job)

  • Objective: Builds the development environment and exports the dist folder containing the build output.
  • Dependencies: None.

image.png{width="736" height="338"}

2. Test (cypress-test Job)

  • Objective: Launches Cypress integration tests automatically.
  • Dependencies: None.
  • Rules: Executes only if the cypress/match-screenshots folder exists.

image.png{width="734" height="467"}

**3. Deploy (**pages and pages:deploy Jobs)

pages

  • Objective: Renames the dist folder generated by the build-dev job to public and deploys Palindrome.js to GitLab Pages.
  • Dependencies: build-dev.

pages:deploy

  • Objective: Automatic job made by GitLab to deploy Palindrome.js.
  • Runner: Executes on the GitLab infrastructure.