init --verification-workflow: the generated workflow never installs dependencies, so verify cannot run the tests

Đang mở
#296 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@FredApps đang làm issue này rồi.

Từ ngày 17/11/2026.

  • #297 của @FredApps — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
github-actions, node.js, typescript
Lĩnh vực
ci-cd, tooling

Hướng nghiên cứu

Start with packages/diffci-cli/src/client/workflow-templates.ts and inspect the diffciVerificationWorkflow template. Reproduce with a project that has vitest in devDependencies and a package-lock.json, then check the generated workflow’s steps. Done means it installs dependencies with npm ci before “Verify changed code” and the test command runs.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

diffci init --verification-workflow writes a workflow (diffciVerificationWorkflow in packages/diffci-cli/src/client/workflow-templates.ts) that checks out the repository, sets up Node and runs diffci verify. It never installs the repository's dependencies. verify runs the repository's own tests, so in any project whose test runner is a dev dependency the job fails before a test runs.

Repro: a project with vitest in devDependencies, a package-lock.json and "test": "vitest run". Run diffci init --verification-workflow and run the generated workflow, or run diffci verify in a fresh checkout without npm ci.

Expected: the workflow installs dependencies (npm ci here) before "Verify changed code", and the tests run.

Actual: there is no install step. verify FAILED, and the test command printed "npx canceled due to missing packages" (vitest not installed).

Not covered here: a repository whose package manager DiffCI cannot detect, and Bun.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
18 giờ 41 phút
Pull request đã merge (30 ngày)
48

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của DiffCI/core

Tất cả issue của DiffCI/core

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.