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
# 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 buildFile details
Download from the command line
curl -L -o .gitlab-ci.yml https://files.samplefiles.com/config/gitlab-ci/.gitlab-ci.ymlwget https://files.samplefiles.com/config/gitlab-ci/.gitlab-ci.ymlhttps://files.samplefiles.com/config/gitlab-ci/.gitlab-ci.ymlprintf '%s %s\n' c509de23ac788e707cc478f8f48ca684ce8672344618e97de121483bc73b8305 .gitlab-ci.yml | shasum -a 256 -cOr check the download in your browser with the checksum calculator.