mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
Add check-app-changes job (runs parallel with gate-2-start after Gate 1)
that git-diffs the push range to detect whether test-relevant paths changed:
e2e_changed: frontends/ + e2e/ + packages/ + components/
unit_changed: frontends/nextjs/src/
test-unit and test-e2e both gain a cache-restore step:
- Finds the last successful run on the same branch via gh CLI
- Downloads coverage-report / playwright-report artifact from that run
- Sets hit=true if download succeeded
- All heavy steps (npm install, build, browsers, test run) are gated on
hit != 'true', so the job completes in seconds on cache hit
Fallback: if no prior successful run exists (hit=false), tests run
normally. New branches and manual dispatches always run (no before SHA).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>