Restart Server after first lighthouse run if it crashed or closed

This commit is contained in:
Neshura 2024-01-03 21:25:14 +01:00
parent 84f45fa16a
commit 536e7e6588
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -58,12 +58,18 @@ jobs:
- name: Build Site
run: yarn build
- name: Start Dev Server
- name: Start Server
run: yarn preview &
- name: Run Unlighthouse for Desktop
run: unlighthouse-ci --build-static --desktop --outputPath reports/desktop
- name: Refresh Server
run: |
if ! pgrep -f "node /usr/bin/yarn" ; then
yarn preview &;
fi
- name: Run Unlighthouse for Mobile
run: unlighthouse-ci --build-static --mobile --outputPath reports/mobile