ci: skip unit and E2E tests when no relevant files changed#59
Conversation
Agent-Logs-Url: https://github.com/nitrocode/token-deathclock/sessions/5ba79303-5834-4b03-8bbd-48c64d71f95d Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughYo, listen up fool! Both workflow files now implement conditional test execution using path-based change detection via Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Fool, Mr. T done told you straight! These here changes is just CI configuration updates, sucka—ain't no complex logic or jibber jabber to worry about! The pattern's the same across both files, so it ain't gonna take no fool long to review! I pity the fool who makes this harder than it gotta be! 💪 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
👁️ PR Preview
|
Tests run unconditionally on every PR, burning CI minutes on docs, YAML, and config-only changes.
Changes
changesjob — added to both workflows usingdorny/paths-filter@v3.0.2(SHA-pinned); detects changes to**/*.js,**/*.ts,**/*.css,tests/**,package*.jsonif: needs.changes.outputs.code == 'true'; skipped entirely when no relevant files changedunit-test-status,e2e-test-status) — runif: always(), exit 1 on failure, exit 0 on skip; these replace the raw test jobs as the required status checksSummary by CodeRabbit