diff --git a/.github/workflows/E2ETest_Lighthouse.yml b/.github/workflows/E2ETest_Lighthouse.yml index 14a4bba..3aba664 100644 --- a/.github/workflows/E2ETest_Lighthouse.yml +++ b/.github/workflows/E2ETest_Lighthouse.yml @@ -12,35 +12,27 @@ jobs: pull-requests: write steps: - # 1. 소스 체크아웃 - uses: actions/checkout@v4 - # 2. Node 설치 - uses: actions/setup-node@v4 with: node-version: 'lts/*' - # 3. 의존성 설치 - name: Install dependencies run: npm ci - # 4. Playwright 브라우저 설치 - name: Install Playwright Browsers run: npx playwright install --with-deps - # 5. 프로젝트 빌드 - name: Build project run: npm run build - # 6. Playwright 테스트 실행 (JSON 리포트 저장) - name: Run Playwright tests run: npx playwright test - # 7. Lighthouse CI 실행 (JSON 리포트 저장) - name: Run Lighthouse CI run: npx lhci autorun --config=./lighthouserc.json --output=json - # 8. Lighthouse 결과 파싱 - name: Parse Lighthouse Scores id: lighthouse run: | @@ -55,7 +47,6 @@ jobs: echo "$result" >> $GITHUB_OUTPUT echo "EOF" >> $GITHUB_OUTPUT - # 9. Playwright 결과 파싱 - name: Parse Playwright Results id: playwright run: | @@ -66,7 +57,6 @@ jobs: echo "failed=$failed" >> $GITHUB_OUTPUT echo "total=$total" >> $GITHUB_OUTPUT - # 10. PR 코멘트 작성 - name: Comment on PR uses: actions/github-script@v7 env: @@ -88,12 +78,12 @@ jobs: |---------------|--------| | **Tests** | | | Total | \`${total}\` | - | ✅ Passed | \`${passed}\` | - | ❌ Failed | \`${failed}\` | + | Passed | \`${passed}\` | + | Failed | \`${failed}\` | | **Lighthouse**| | - | 🚀 Performance | \`${lh.perf}\` | - | ♿ Accessibility| \`${lh.access}\` | - | 🔎 SEO | \`${lh.seo}\` | + | Performance | \`${lh.perf}\` | + | Accessibility| \`${lh.access}\` | + | SEO | \`${lh.seo}\` | | LCP | \`${lh.lcp.toFixed(2)}s\` | `; @@ -104,7 +94,6 @@ jobs: body: body }); - # 11. 리포트 아티팩트 업로드 (HTML 파일) - uses: actions/upload-artifact@v4 if: always() with: diff --git a/index.html b/index.html index 8e2db99..662217f 100644 --- a/index.html +++ b/index.html @@ -4,19 +4,14 @@ Haruhan - +