Skip to content
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

chore(ci): set up Lighthouse auditing in CI #132

Merged
merged 9 commits into from
Oct 28, 2024
Merged

chore(ci): set up Lighthouse auditing in CI #132

merged 9 commits into from
Oct 28, 2024

Conversation

Restioson
Copy link
Collaborator

@Restioson Restioson commented Oct 18, 2024

For now, this just hits the main pages.

Todo

  • Basic setup
  • Ignore irrelevant lints
  • Add Makefile command to run LHCI locally (or make it part of test)
  • Run fixtures before lhci autorun

@Restioson
Copy link
Collaborator Author

Setup is working now, pending some adjustments - failure is due to the site failing the audits. We can configure these as we'd like to.

@Restioson Restioson force-pushed the ci/lighthouse branch 6 times, most recently from e9c963f to 89cbcdc Compare October 28, 2024 10:16
@Restioson Restioson marked this pull request as ready for review October 28, 2024 10:17
Copy link
Contributor

@friedelwolff friedelwolff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can ignore my comments about the chmod, as I see you did it in the last commit. Maybe just put that in a separate commit, please.

.github/workflows/testing.yml Outdated Show resolved Hide resolved
.github/workflows/testing.yml Outdated Show resolved Hide resolved
Dockerfile-dev Outdated Show resolved Hide resolved
This enables its use in the LHCI script (see following commits)
These were triggering warnings due to using an outdated version of Node.js
internally
For now, this just hits the main pages
Adding data before running Lighthouse against the app ensures that
we get better coverage of the HTML (some is only enabled when
content is present).
Previously, this command would not work (`dev-mass-pdf-upload` was renamed to
`import-documents`). This brings the name of the Makefile command back in line
with the Django manage.py command.
This is necessary to get 100% coverage of the HTML on the documents page by
Lighthouse
This is also better for Lighthouse coverage
This will run Lighthouse CI against the current app, with the current data
stored in the DB.
@Restioson Restioson merged commit a9d95a4 into main Oct 28, 2024
2 checks passed
@Restioson Restioson deleted the ci/lighthouse branch October 28, 2024 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants