Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu-zip committed Aug 14, 2024
1 parent 0cdb80d commit 15f3819
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Debug LHCI reports
run: ls -al ./lhci_reports

- name: Run Lighthouse CI // Lighthouse 실행
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
run: |
pnpm i -g @lhci/cli
pnpm run build
lhci autorun || echo "Fail to Run Lighthouse CI!"
- name: Format lighthouse score
Expand Down
9 changes: 1 addition & 8 deletions .lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,10 @@ module.exports = {
numberOfRuns: 3, // 실행 횟수
settings: {
preset: "desktop",
chromeFlags: [
"--no-sandbox",
"--ignore-certificate-errors",
"--disable-web-security",
"--allow-insecure-localhost",
"--allow-running-insecure-content",
],
chromeFlags: ["--no-sandbox", "--ignore-certificate-errors"],
},
},
upload: {
// 레포트 생성
target: "filesystem",
outputDir: "./lhci_reports",
reportFilenamePattern: "%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%",
Expand Down

0 comments on commit 15f3819

Please sign in to comment.