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

Aperta
#296 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@FredApps ci sta già lavorando.

Dal 17/11/2026.

  • #297 di @FredApps — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
github-actions, node.js, typescript
Ambito
ci-cd, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
18h 41m
PR unite (30g)
48

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DiffCI/core

Tutte le issue di DiffCI/core

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.