← All code files

.gitlab-ci.yml

GitLab CI pipeline with test and build stages using a Node image.

image: node:22

stages:
  - test
  - build

cache:
  paths:
    - node_modules/

test:
  stage: test
  script:
    - npm ci
    - npm test

build:
  stage: build
  script:
    - npm run build
  artifacts:
    paths:
      - dist/

About this tool

GitLab CI pipeline with test and build stages using a Node image.

Ready-to-use .gitlab-ci.yml — view the content, copy it, or download it with the correct filename. Free and 100% in your browser.