-
Notifications
You must be signed in to change notification settings - Fork 2
Feat : Github Action에서 Bundle Analizer 및 Lighthouse 지표를 확인하는 기능 추가 #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7a59ae3 to
bcd1750
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
이 PR은 GitHub Actions 워크플로우에 번들 분석기(Bundle Analyzer)와 Lighthouse 성능 측정 기능을 추가하여 CI/CD 파이프라인에서 자동으로 성능 지표를 확인할 수 있도록 하는 기능을 구현합니다.
- Lighthouse를 통한 웹 성능 자동 측정 및 PR 댓글 리포트 생성
- 번들 크기 분석 및 최적화 권장사항 제공
- Turbo 업데이트 알림 비활성화 및 CI 워크플로우 최적화
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| turbo.json | Turbo 업데이트 알림 비활성화 설정 추가 |
| package.json | 모든 turbo 명령어에 업데이트 알림 비활성화 환경변수 추가 |
| commitlint.config.cjs | 커밋 메시지 최소 길이 요구사항 완화 (10자 → 5자) |
| apps/web/vitest.config.ts | Vitest 설정 파일 추가 (테스트 환경 및 커버리지 설정) |
| apps/web/src/app/main/home/page.tsx | 홈 페이지 컴포넌트 추가 |
| apps/web/src/app/main/community/components/CalloutCard.tsx | 미사용 컴포넌트 제거 |
| apps/web/package.json | Lighthouse, 번들 분석기 관련 의존성 및 스크립트 추가 |
| apps/web/next.config.js | 번들 분석기 통합 설정 |
| .lighthouserc.js | Lighthouse CI 설정 파일 |
| .github/workflows/*.yml | 번들 분석, Lighthouse 측정 워크플로우 추가 |
| .github/scripts/*.js | 번들 분석 및 Lighthouse 측정 스크립트 구현 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
📦 번들 분석 결과📊 번들 크기 요약
🔍 주요 청크 파일 (크기순)🤖 자동 생성된 번들 분석 리포트 |
⚡ Lighthouse 성능 분석 결과📊 전체 평균 점수
📈 측정 현황
📄 페이지별 상세 분석🏠 커뮤니티 페이지:
|
| 지표 | 점수 |
|---|---|
| 🚀 Performance | 82점 |
| ♿ Accessibility | 84점 |
| ✅ Best Practices | 100점 |
| 🔍 SEO | 100점 |
📊 상세 분석 보기
👥 창업자 페이지: /main/founder
| 지표 | 점수 |
|---|---|
| 🚀 Performance | 75점 |
| ♿ Accessibility | 95점 |
| ✅ Best Practices | 100점 |
| 🔍 SEO | 100점 |
📊 상세 분석 보기
🏡 홈 페이지: /main/home
| 지표 | 점수 |
|---|---|
| 🚀 Performance | 75점 |
| ♿ Accessibility | 95점 |
| ✅ Best Practices | 100점 |
| 🔍 SEO | 100점 |
📊 상세 분석 보기
🗺️ 지도 페이지: /main/maps
| 지표 | 점수 |
|---|---|
| 🚀 Performance | 75점 |
| ♿ Accessibility | 95점 |
| ✅ Best Practices | 100점 |
| 🔍 SEO | 100점 |
📊 상세 분석 보기
👤 프로필 페이지: /main/profile
| 지표 | 점수 |
|---|---|
| 🚀 Performance | 75점 |
| ♿ Accessibility | 95점 |
| ✅ Best Practices | 100점 |
| 🔍 SEO | 100점 |
📊 상세 분석 보기
🔗 전체 상세 분석 결과
📄 측정된 페이지
- /main/community
- /main/founder
- /main/home
- /main/maps
- /main/profile
모든 페이지에서 성능 측정이 완료되었습니다.
🤖 자동 생성된 Lighthouse 성능 리포트
🚀 GitHub Actions 워크플로우 최적화 및 통합 분석 시스템 구축
📋 개요
자동화된 번들 분석 및 성능 측정 시스템을 구축하는 작업을 진행했습니다.
🎯 주요 목표
🛠️ 주요 변경사항
1. GitHub Actions 워크플로우 구축 및 최적화
📊 CI 워크플로우 최적화 (
ci.yml)주요 개선사항:
⚡ 통합 분석 워크플로우 (
analysis.yml)새로운 통합 워크플로우로 번들 분석과 성능 측정을 한 번의 의존성 설치로 처리:
핵심 기능:
2. 번들 분석 시스템
📦 번들 크기 분석 (
bundle-diff.js)분석 항목:
3. 성능 측정 시스템
⚡ Lighthouse 성능 측정 (
lighthouse-multi-page.js,parse-lhci-results.js)성능 지표:
LHCI 활용 장점:
4. 템플릿 기반 코멘트 시스템
📝 마크다운 템플릿 분리
템플릿 장점:
📈 성능 개선 효과
CI/CD 파이프라인 최적화
워크플로우 안정성
🔍 추가된 분석 스크립트들
핵심 스크립트
bundle-diff.jslighthouse-multi-page.jsparse-lhci-results.js제거된 불필요 파일들
🔧 기술적 세부사항
주요 기술 스택
스크린샷