Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu-zip committed Aug 23, 2024
1 parent 3692ba0 commit e776cba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install pnpm // pnpm 설치
uses: pnpm/action-setup@v3
with:
version: 9.7.0
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down Expand Up @@ -60,6 +60,13 @@ jobs:
pnpm i -g @lhci/cli
lhci autorun || echo "Fail to Run Lighthouse CI!"
- name: Generate and Upload Lighthouse Report // 레포트 생성
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
run: |
lhci collect --additive
lhci upload --target=filesystem --outputDir=./lighthouse-reports
- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@v3
Expand Down
2 changes: 1 addition & 1 deletion .lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module.exports = {
numberOfRuns: 3, // 실행 횟수
settings: {
preset: "desktop",
chromeFlags: ["--no-sandbox", "--ignore-certificate-errors"],
},
},
upload: {
// 레포트 생성
target: "filesystem",
outputDir: "./lhci_reports",
reportFilenamePattern: "%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%",
Expand Down

0 comments on commit e776cba

Please sign in to comment.