Files
metabuilder/.github
johndoe6345789 2021e568f1 perf(ci): cache test results for unchanged app source
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>
2026-03-13 22:42:36 +00:00
..