[pre-commit.ci] pre-commit autoupdate #105
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: Lighthouse | |
on: push | |
jobs: | |
static-dist-dir: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v3 | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: Build | |
run: hugo --gc --minify -b "/" | |
- name: Run Lighthouse against a static dist dir | |
uses: treosh/lighthouse-ci-action@v11 | |
with: | |
# no urls needed, since it uses local folder to scan .html files | |
configPath: './.lighthouserc.json' |