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
|
- name: Build Site
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Start Dev Server
|
- name: Start Server
|
||||||
run: yarn preview &
|
run: yarn preview &
|
||||||
|
|
||||||
- name: Run Unlighthouse for Desktop
|
- name: Run Unlighthouse for Desktop
|
||||||
run: unlighthouse-ci --build-static --desktop --outputPath reports/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
|
- name: Run Unlighthouse for Mobile
|
||||||
run: unlighthouse-ci --build-static --mobile --outputPath reports/mobile
|
run: unlighthouse-ci --build-static --mobile --outputPath reports/mobile
|
||||||
|
|
||||||
|
|
|
@ -58,12 +58,18 @@ jobs:
|
||||||
- name: Build Site
|
- name: Build Site
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Start Dev Server
|
- name: Start Server
|
||||||
run: yarn preview &
|
run: yarn preview &
|
||||||
|
|
||||||
- name: Run Unlighthouse for Desktop
|
- name: Run Unlighthouse for Desktop
|
||||||
run: unlighthouse-ci --build-static --desktop --outputPath reports/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
|
- name: Run Unlighthouse for Mobile
|
||||||
run: unlighthouse-ci --build-static --mobile --outputPath reports/mobile
|
run: unlighthouse-ci --build-static --mobile --outputPath reports/mobile
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue