← Tất cả file code

.gitlab-ci.yml

Pipeline GitLab CI với stage test và build dùng image 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/

Về công cụ này

Pipeline GitLab CI với stage test và build dùng image Node.

.gitlab-ci.yml sẵn sàng dùng — xem nội dung, copy, hoặc tải về đúng tên file. Miễn phí, 100% trong trình duyệt.