Run Lighthouse in CI for accessibility and performance

オープン
#136 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, typescript, vite

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
6
フォーク
6
平均マージ
1時間 59分
マージ済み PR(30日)
59

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Haseeb-MernStack/commune のほかの issue

Haseeb-MernStack/commune の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。