Skip to content

[#605] Google LightHouse CI 추가 #28

[#605] Google LightHouse CI 추가

[#605] Google LightHouse CI 추가 #28

Workflow file for this run

name: LightHouse CI
on:
pull_request:
branches:
- main
- release
jobs:
lhci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install packages
run: yarn install && yarn global add @lhci/cli@0.13.x
- name: Set .env
run: echo "${{ vars.DEVELOPMENT_ENV }}" > .env.local
- name: Build
run: yarn build
- name: Run Lighthouse CI
run: lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
- name: Comment LightHouse Score
id: comment-lightHouse-score
uses: ./.github/actions/comment-scores