Run Lighthouse in CI for accessibility and performance

Open
#136 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, typescript, vite

Research direction

Start by reading the existing workflows in .github/workflows/ and the build and preview scripts in apps/web/package.json, then docs/PERFORMANCE.md for current targets. Add a workflow that builds the web app, serves it with vite preview, and runs Lighthouse CI on the five listed pages with a path filter for apps/web. Done means failures name the page and audit, the report is saved as an artifact, and the run finishes in under 10 minutes.

Written by the indexing model from the issue text.

Description

accessibility ci help wanted

Difficulty: Intermediate · Estimated size: 1 day

Context

Accessibility and speed matter for a community platform, but they are only checked by hand.

Problem or goal

Run Lighthouse against the built site for the public pages and report the scores on each pull request.

Suggested approach

  • Use Lighthouse CI against vite preview for /, /explore, /login, /register, /privacy.
  • Set minimum scores (for example accessibility 95, best practices 95, performance 80 on a throttled mobile profile). Start with warnings, then make them required once stable.
  • Save the report as a workflow artifact.

Where to look

  • .github/workflows/
  • apps/web/package.json
  • docs/PERFORMANCE.md

Acceptance criteria

  • The workflow runs on pull requests that change apps/web.
  • Failures name the page and the failing audit.
  • Runs finish in under 10 minutes.

How to work on it

  1. Comment here to claim it, so two people do not do the same work.
  2. Fork the repo and branch from main (feat/short-name or fix/short-name). Setup steps are in docs/DEVELOPMENT.md.
  3. Keep the change focused and add tests for backend logic.
  4. Run npm run typecheck, npm test and npm run lint and npm run format before opening the pull request.
  5. Use a Conventional Commits title (for example feat(web): add bookmarks). More in CONTRIBUTING.md.

Stuck? Ask in this issue. Questions are welcome.


Generated by Claude Code

Dominant language
TypeScript
Stars
6
Forks
6
Avg merge
1h 59m
Merged PRs (30d)
59

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Haseeb-MernStack/commune

All issues in Haseeb-MernStack/commune

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.