lighthouse-ci icon indicating copy to clipboard operation
lighthouse-ci copied to clipboard

gitlab ci blocks during run

Open chenfan0 opened this issue 2 months ago • 8 comments

lighthouserc.js

module.exports = {
    ci: {
        collect: {
            url: [
                'http://127.0.0.1:8089/'
            ],
            numberOfRuns: 3,
            startServerCommand: "PORT=8089 node src/server",
            settings: {
                hostname: '127.0.0.1',
                chromeFlags: ['--no-sandbox'],
            },
        },
        upload: {
            target: 'temporary-public-storage',
        }
    }
}

.gitlab-ci.yml

lhci:
  stage: test
  image: cypress/browsers:node-18.16.1-chrome-114.0.5735.133-1-ff-114.0.2-edge-114.0.1823.51-1
  script:   
    - npm install
    - npm install -g @lhci/[email protected]
    - npm run build
    - lhci autorun --config=./lighthouserc.js || echo "LHCI failed!"
image

chenfan0 avatar Apr 24 '24 06:04 chenfan0

I also got this. Any solution?

ydhnwb avatar Apr 30 '24 11:04 ydhnwb

Has the npm package been compromised?

$ npx lhci --version
Hello, this is AnupamAS01!

njsaunders avatar May 09 '24 16:05 njsaunders

I also got this. Any solution?

no 😞

chenfan0 avatar May 20 '24 00:05 chenfan0