← Todos los archivos

.gitlab-ci.yml

Pipeline de GitLab CI con etapas de test y build usando una imagen Node.

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/

Sobre esta herramienta

Pipeline de GitLab CI con etapas de test y build usando una imagen Node.

.gitlab-ci.yml listo para usar: ve el contenido, cópialo o descárgalo con el nombre correcto. Gratis y 100% en tu navegador.