fix: fail CI on test timeout and upload vitest report on failure (closes #706)#853
fix: fail CI on test timeout and upload vitest report on failure (closes #706)#853boalambo wants to merge 4 commits into
Conversation
|
@boalambo Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Hello Ma. This PR fixes issue #706 by removing the I noticed the Just asking to be sure. Thank you |
Problem
The test step in
.github/workflows/ci.ymlwrappedvitest runin ashell timeout with
|| exit 0. This caused the CI job to always exitwith code 0 — even when tests failed or the suite timed out — giving
false confidence and allowing broken builds to be merged undetected.
Changes
|| exit 0fallback and the shelltimeoutwrappertimeout-minutes: 5directly on theRun Testsstep soGitHub Actions enforces the limit and fails the job on expiry
--reporter=json --outputFile=vitest-report.jsonto Vitestso a structured report is written during the run
Upload test report on failurestep that uploadsvitest-report.jsonas a CI artifact when the job failsAcceptance Criteria
Impacted Files
.github/workflows/ci.ymlCloses #706