feat: lighthouse ci 다시 세팅 #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Lighthouse CI When Push | |
on: [push] | |
jobs: | |
lhci: | |
name: Lighthouse CI | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Use Node.js 17.3.1 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 17.3.1 | |
- name: Install packages | |
run: | | |
npm install -g pnpm | |
pnpm install | |
- name: Build | |
run: | | |
pnpm run build | |
- name: Install Lighthouse CLI | |
run: | | |
npm install -g @lhci/cli | |
- name: Run Lighthouse CI | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
run: | | |
lhci autorun || echo "Fail to Run Lighthouse CI!" |