ci: restore test pipeline and keep test coverage in sync - #56
ci: restore test pipeline and keep test coverage in sync#56samiriasbeck wants to merge 1 commit into
Conversation
criptogus
left a comment
There was a problem hiding this comment.
A direção desta PR é positiva: substituir a lista manual de arquivos de teste no workflow pelo npm test canônico elimina o drift, e restaurar o npm ci é necessário.
Porém, ela já está desatualizada em relação à main: o package.json atual está em 0.1.92 com @lovable.dev/vite-tanstack-config@2.8.5, enquanto o lockfile desta PR sincroniza para 0.1.80 / 2.8.4. Se mesclada como está, o npm ci voltará a falhar com o mesmo EUSAGE.
Pedido de mudança: rebase na main atual e regenere o package-lock.json contra o manifest vigente (npm install --package-lock-only), confirmando que npm ci && npm test passam. A mudança no .github/workflows/test.yml pode ficar exatamente como está — essa parte está aprovada.
Generated by Claude Code
Summary
This PR restores the GitHub Actions test pipeline and removes duplication between the workflow and the canonical test scripts declared in
package.json.Problem
The current
testsworkflow stops atnpm cibefore executing any test because the root lockfile is out of sync withpackage.json.Observed mismatch:
@lovable.dev/vite-tanstack-config: manifest2.8.4, lockfile2.8.2@lovable.dev/vite-plugin-hmr-gate: incompatible transitive lock entry0.1.80, lockfile0.1.55The workflow also maintains its own manual list of test files, which has drifted from the
npm testdefinition.Changes
package-lock.jsonwith the current package manifest..github/workflows/test.ymlwith the canonicalnpm testcommand.Validation
Before the patch:
npm cifails withEUSAGEAfter the patch:
npm ci --ignore-scripts --no-audit --no-fundsucceeds from a clean installnpm testpassesgit diff --checkpassThe validated suites include trust scoring, Ed25519 attestations, release signing, adversarial evaluation, prompt-injection protection, runtime guardrails, content auditing, and integrations.
Risk
Low. No runtime behavior, API contract, database, or marketplace content is changed. The PR only updates dependency metadata and CI orchestration.
Rollback
Revert this PR to restore the previous lockfile and workflow.