You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
init --verification-workflow: the generated workflow never installs dependencies, so verify cannot run the tests #296
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.
Activity
fix(cli): install dependencies in the generated verification workflow (…