Restart Server after first lighthouse run if it crashed or closed
This commit is contained in:
parent
84f45fa16a
commit
536e7e6588
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue