Trying to integrate unlighthouse
This commit is contained in:
parent
7d6eeaa8f2
commit
2808d99db1
2 changed files with 248 additions and 207 deletions
|
@ -69,6 +69,21 @@ deploy-site:
|
|||
- ssh $DEPLOY_USER@$DEPLOY_HOST "find maintenance public -maxdepth 1 -printf '%p\n'; screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
|
||||
- echo "Website is up on https://firq.dev/"
|
||||
|
||||
benchmark-page:
|
||||
stage: post_deploy
|
||||
image: node:lts
|
||||
when: on_success
|
||||
only:
|
||||
- main
|
||||
before_script:
|
||||
- npm install @unlighthouse/cli puppeteer
|
||||
script:
|
||||
- unlighthouse-ci --site https://firq.dev/ --budget 90 --debug --build-static
|
||||
artifacts:
|
||||
paths:
|
||||
- .unlighthouse
|
||||
expire_in: 1 week
|
||||
|
||||
success_notification:
|
||||
stage: post_deploy
|
||||
before_script:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue