Restart Server after first lighthouse run if it crashed or closed
This commit is contained in:
parent
1d2be60c1e
commit
bdc0833e94
2 changed files with 14 additions and 2 deletions
|
@ -57,12 +57,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
|
||||
|
||||
|
|
|
@ -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