Skip to content

Commit

Permalink
chore: env 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
minsu-zip committed Aug 14, 2024
1 parent 15f3819 commit 03bc18e
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,30 @@ jobs:
- name: Install dependencies
run: pnpm install

- name: Debug LHCI reports
run: ls -al ./lhci_reports
- name: Build the project
env:
AUTH_KAKAO_ID: ${{ secrets.AUTH_KAKAO_ID }}
AUTH_KAKAO_SECRET: ${{ secrets.AUTH_KAKAO_SECRET }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
AUTH_URL: ${{ secrets.AUTH_URL }}
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }}
NEXT_PUBLIC_API_URL: ${{ secrets.NEXT_PUBLIC_API_URL }}
NEXT_PUBLIC_NEXTAUTH_SECRET: ${{ secrets.NEXT_PUBLIC_NEXTAUTH_SECRET }}
NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION: ${{ secrets.NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION }}
NEXT_PUBLIC_METADATABASE: ${{ secrets.NEXT_PUBLIC_METADATABASE }}
NEXT_PUBLIC_OPENGRAPH_URL: ${{ secrets.NEXT_PUBLIC_OPENGRAPH_URL }}
run: pnpm run build

- 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: Debug LHCI reports
run: ls -al ./lhci_reports

- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@v3
Expand Down

0 comments on commit 03bc18e

Please sign in to comment.