Setup CI Pipeline

Configure GitHub Actions CI for React/TypeScript frontend projects. Coverage gates, visual regression, caching, Blacksmith workers, bundle budgets. Use when setting up CI, optimizing pipelines, or adding quality gates to PRs.

redpanda-data 984bf09 2 files · 3.8 KB Updated 6 repo stars

File contents

Setup CI Pipeline

GitHub Actions tuned for React/TypeScript:

  • Quality gate -- lint, type-check, tests in <5 min
  • Coverage gates -- enforce thresholds, post diff on PRs
  • Visual regression -- Playwright screenshot compare
  • Dependency automation -- dependabot minor/patch
  • Bundle budget -- alert on size regressions
  • Smart bun caching

See REFERENCE.md for workflow templates + Blacksmith tuning.

Steps

  1. Write .github/workflows/quality-gate.yml from REFERENCE.md
  2. Write .github/dependabot.yml -- auto minor/patch, manual major
  3. Add toHaveScreenshot() to Playwright tests
  4. Add --coverage --coverage.thresholds.lines=80 to test scripts

Verify

  • gh workflow run quality-gate.yml runs
  • Coverage report on PRs
  • Dependabot make first PR

redpanda-data/ui-harness/tree/main/setup-ci-pipeline commit 984bf094cb

Frequently asked questions

npx skillmds@latest add redpanda-data/setup-ci-pipeline