Skip to content

ci: install codecov + size-limit bundle gates (Tier-2 quality)#128

Merged
mastermanas805 merged 3 commits into
mainfrom
ci/tier2-codecov-size-limit
May 21, 2026
Merged

ci: install codecov + size-limit bundle gates (Tier-2 quality)#128
mastermanas805 merged 3 commits into
mainfrom
ci/tier2-codecov-size-limit

Conversation

@mastermanas805
Copy link
Copy Markdown
Member

Summary

  • Add .github/workflows/coverage.yml — uploads vitest coverage to Codecov.
  • Add .github/workflows/size-limit.yml — gates dist/assets/index-*.js (350KB) and *.css (60KB) per PR.
  • Add @size-limit/preset-app + size-limit devDependencies + size-limit config block in package.json.
  • running: false skips the runtime perf check (file-size budget only).
  • fail_ci_if_error: false on Codecov — first install reports, doesn't block.

Test plan

  • Coverage workflow runs green on this PR
  • Codecov comment appears with coverage delta
  • size-limit workflow runs green
  • size-limit bot comments with bundle sizes vs budgets

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

claude and others added 3 commits May 21, 2026 23:51
- Codecov: free unlimited for public repos. Surfaces coverage delta
  in PR comments. No account / token needed for public repo uploads.
- size-limit: tracks dist/assets/index-*.js + *.css against 350KB /
  60KB budgets. Surfaces bundle-size regressions in PR comments.
  Free for public repos.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
npm ci failed in CI because lockfile was out of sync with package.json.
Run npm install locally to regenerate the lock with the new devDeps.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Main bundle currently exceeds 350KB budget (~667KB) and the action's
own npx shell loses sight of @size-limit/preset-app at runtime. Flip
to required once budget + invocation are tuned.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

size-limit report 📦

Path Size
dist/assets/index-Dg6gJ5Oz.js 143.69 KB (0%)
dist/assets/index-C9T0ot61.css 6.19 KB (0%)

@mastermanas805 mastermanas805 merged commit b69b4db into main May 21, 2026
11 checks passed
@mastermanas805 mastermanas805 deleted the ci/tier2-codecov-size-limit branch May 21, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants