Skip to content

add lighthouse on cicd workflow #11

add lighthouse on cicd workflow

add lighthouse on cicd workflow #11

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 necessary packages
run: npm install
- name: Run Lighthouse CI
uses: treosh/lighthouse-ci-action@v11
with:
urls: |
https://aferreira-deo.github.io/jftl-lighthouse-workshop/
configPath: './lighthouserc.js'
temporaryPublicStorage: true # upload lighthouse report to the temporary storage