Skip to content

Commit

Permalink
chore: lighthouse 실행 workflow 수정 (SP-668)
Browse files Browse the repository at this point in the history
  • Loading branch information
SungHyun627 committed Aug 19, 2024
1 parent 648ddf4 commit 355631d
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run lighthouse CI When Push on PR to dev branch
name: Run lighthouse CI When Push on PR
on:
pull_request:
branches:
Expand Down Expand Up @@ -32,10 +32,21 @@ jobs:
- name: Build the project
run: |
yarn build
- name: Run Lighthouse CI
- name: Run Lighthouse CI - Desktop
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
run: |
yarn global add @lhci/cli
lhci autorun || echo "Fail to Run Lighthouse CI!"
lhci collect --config=lighthouserc-desktop.cjs || echo "Fail to Run Lighthouse CI!"
lhci upload --config=lighthouserc-desktop.cjs || echo "Fail to Run Lighthouse CI!"
- name: Run Lighthouse CI - Mobile
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
run: |
lhci collect --config=lighthouserc-mobile.cjs || echo "Fail to Run Lighthouse CI!"
lhci upload --config=lighthouserc-mobile.cjs || echo "Fail to Run Lighthouse CI!"


0 comments on commit 355631d

Please sign in to comment.