-
-
Notifications
You must be signed in to change notification settings - Fork 1
Add Lighthouse workflow #1040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Lighthouse workflow #1040
Conversation
Add an action that runs Lighthouse against the root page of the website to check for any issues.
Remove the -WindowStyle flag.
Codecov Report
@@ Coverage Diff @@
## main #1040 +/- ##
=======================================
Coverage 90.15% 90.15%
=======================================
Files 50 50
Lines 823 823
=======================================
Hits 742 742
Misses 81 81
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Set a number of configuration options to use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Device | URL |
|---|---|
| desktop | https://localhost:5001 |
| Device | URL |
|---|---|
| mobile | https://localhost:5001 |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
Audit the production website to test a theory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Device | URL |
|---|---|
| desktop | https://martincostello.com |
| Device | URL |
|---|---|
| mobile | https://martincostello.com |
Not what you expected? Are your scores flaky? GitHub runners could be the cause.
Try running on Foo instead
Audit the local site again, as auditing production didn't work either.
Upload the Lighthouse report to the artifacts.
Just in case, normalize the path separators for Linux.
Request the URL before running Lighthouse.
Try and see what might be failing when the process starts.
Run dotnet dev-certs to configure the HTTPS certificate.
Run the server as a new process again.
Run on Windows instead of Linux to make it easier to persist the dotnet process.
Try and keep the child process alive to run the server.
Add a sleep to see if it's just not started yet.
Ignore warning for self-signed TLS certificate.
Parameterise the URL to test.
Refactor the code to check for the website being running.
Fix casing to see if that's why it failed.
Remove Out-Null in case it's losing the response.
Use environment variable again for the website URL.
Use a literal as the variable doesn't seem to work.
Generate the certificate automatically.
Fix report not being output.
Ensure the directory to put the reports in exists.
Hide the output from creating the report directory.
Build the CSS and JavaScript.
Use npm ci instead of npm install.
Add an action that runs Lighthouse against the root page of the website to check for any issues.