Skip to content

add lighthouse on cicd workflow #5

add lighthouse on cicd workflow

add lighthouse on cicd workflow #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- exercise-branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./src
- name: Install Lighthouse CI
run: npm install --save-dev @lhci/cli
- name: Run Lighthouse CI
run: |
lhci autorun --collect.staticDistDir=./src --assert.preset=lighthouse:recommended