Config Files · 1 file

Sample GitLab CI File

GitLab pipelines are defined in .gitlab-ci.yml with stages and jobs. Our sample is realistic and valid for its tool, with fake hosts and secrets.

GitLab CI · 593 B

GitLab CI pipeline

A GitLab CI pipeline with stages, a cached install, parallel test jobs, artifacts and a manual production deploy. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

.gitlab-ci.yml — first linesYAML
# Sample GitLab CI pipeline — samplefiles.com
stages: [install, test, build, deploy]

default:
  image: node:22
  cache:
    key: { files: [package-lock.json] }
    paths: [node_modules/]

install:
  stage: install
  script: npm ci

unit-tests:
  stage: test
  script: npm test
  parallel: 2

lint:
  stage: test
  script: npm run lint

build:
  stage: build
  script: npm run build

File details

Size
593 B (593 bytes)
MIME type
application/yaml
SHA-256
c509de23ac788e707cc478f8f48ca684ce8672344618e97de121483bc73b8305
MD5
8cf16792625bac5fda73167b71c0c012

Download from the command line

curl -L -o .gitlab-ci.yml https://files.samplefiles.com/config/gitlab-ci/.gitlab-ci.yml

Or check the download in your browser with the checksum calculator.