I'm getting the following error in github actions when I try to run this on push on an Eleventy site.
Full output
Run Lighthouse against a static dist dir
1s
at async run (/home/runner/work/_actions/treosh/lighthouse-ci-action/v2/node_modules/@lhci/cli/src/cli.js:85:7)
Run treosh/lighthouse-ci-action@v2
Action config
Collecting
Started a web server on port 38615...
Error: ENOENT: no such file or directory, scandir '/home/runner/work/derekjdev/_site'
at Object.readdirSync (fs.js:854:3)
at FallbackServer.getAvailableUrls (/home/runner/work/_actions/treosh/lighthouse-ci-action/v2/node_modules/@lhci/cli/src/collect/fallback-server.js:62:26)
at startServerAndDetermineUrls (/home/runner/work/_actions/treosh/lighthouse-ci-action/v2/node_modules/@lhci/cli/src/collect/collect.js:150:25)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Object.runCommand (/home/runner/work/_actions/treosh/lighthouse-ci-action/v2/node_modules/@lhci/cli/src/collect/collect.js:189:25)
##[error]LHCI 'collect' has encountered a problem.
at async run (/home/runner/work/_actions/treosh/lighthouse-ci-action/v2/node_modules/@lhci/cli/src/cli.js:85:7)
.github/workflows/main.yml
name: Lighthouse
on: push
jobs:
static-dist-dir:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run Lighthouse against a static dist dir
uses: treosh/lighthouse-ci-action@v2
with:
# no urls needed, since it uses local folder to scan .html files
configPath: '.github/lighthouse/lighthouserc.json'
I'm getting the following error in github actions when I try to run this on push on an Eleventy site.
Full output
.github/workflows/main.yml
**.github/lighthouse/lighthouserc.json***
What am I missing?