Skip to content

Commit

Permalink
Lighthouse - send png instead of html
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejslawik committed Feb 6, 2023
1 parent c309f98 commit 5623b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipe/custom/lighthouse.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function validate(): bool
--output-path={$lighthouseConfig->getProjectSlug()}-mobile.html {$extraHeaders}");
runLocally("chromium-browser --no-sandbox --headless --screenshot=\"{$lighthouseConfig->getProjectSlug()}-mobile.png\" \
\"{$lighthouseConfig->getProjectSlug()}-mobile.html\"");
runLocally("curl -F file=@{$lighthouseConfig->getProjectSlug()}-mobile.html \
runLocally("curl -F file=@{$lighthouseConfig->getProjectSlug()}-mobile.png \
-F \"initial_comment=Here are the mobile :iphone: Lighthouse results for your latest deployment :rocket:\" \
-F channels={$lighthouseConfig->getSlackChannels()} \
-H \"Authorization: Bearer {$lighthouseConfig->getSlackAuthToken()}\" \
Expand All @@ -110,7 +110,7 @@ public function validate(): bool
--output-path={$lighthouseConfig->getProjectSlug()}-desktop.html {$extraHeaders}");
runLocally("chromium-browser --no-sandbox --headless --screenshot=\"{$lighthouseConfig->getProjectSlug()}-desktop.png\" \
\"{$lighthouseConfig->getProjectSlug()}-desktop.html\"");
runLocally("curl -F file=@{$lighthouseConfig->getProjectSlug()}-desktop.html \
runLocally("curl -F file=@{$lighthouseConfig->getProjectSlug()}-desktop.png \
-F \"initial_comment=Here are the desktop :computer: Lighthouse results for your latest deployment :rocket:\" \
-F channels={$lighthouseConfig->getSlackChannels()} \
-H \"Authorization: Bearer {$lighthouseConfig->getSlackAuthToken()}\" \
Expand Down

0 comments on commit 5623b2e

Please # to comment.