trying unlighthouse
This commit is contained in:
parent
4e5b7fd2b5
commit
9256f1717c
1 changed files with 19 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
stages:
|
stages:
|
||||||
- validate
|
- validate
|
||||||
- build
|
- build
|
||||||
|
- benchmark
|
||||||
- deploy
|
- deploy
|
||||||
- post_deploy
|
- post_deploy
|
||||||
- scripts
|
- scripts
|
||||||
|
@ -47,6 +48,24 @@ build-site:
|
||||||
- public
|
- public
|
||||||
expire_in: 1 day
|
expire_in: 1 day
|
||||||
|
|
||||||
|
unlighthouse:
|
||||||
|
image: registry.gitlab.com/gitlab-ci-utils/lighthouse:latest
|
||||||
|
stage: benchmark
|
||||||
|
when: on_success
|
||||||
|
except:
|
||||||
|
- main
|
||||||
|
- tags
|
||||||
|
before_script:
|
||||||
|
- npm install @unlighthouse/cli puppeteer
|
||||||
|
- mkdir unlighthouse-reports
|
||||||
|
script:
|
||||||
|
- serve ./public/ > /dev/null 2>&1 & wait-on http://localhost:9101/
|
||||||
|
- unlighthouse-ci http://localhost:3000 --site localhost:9101 --budget 75 --build-static --output-path ./unlighthouse-reports
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- unlighthouse-reports
|
||||||
|
expire_in: 1 day
|
||||||
|
|
||||||
deploy-site:
|
deploy-site:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
when: on_success
|
when: on_success
|
||||||
|
|
Loading…
Reference in a new issue