feat: ci 다시 세팅 #9
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: | | |
pnpm install | |
- name: Build | |
run: | | |
pnpm run build | |
- name: Run Lighthouse CI | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
run: | | |
npm install -g @lhci/cli | |
lhci autorun || echo "Fail to Run Lighthouse CI!" |