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

Enable linting in CI, and add frontend build step in validate #844

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

rwood-moz
Copy link
Contributor

@rwood-moz rwood-moz commented Jan 29, 2025

This PR does a few things:

  • Adds a frontend ESLINT npm run lint linting step in the GHA frontend validation
  • Adds a backend ruff check linting step in the GHA backend validation
  • Adds a frontend build step (npm run build) during the frontend GHA validation as previously the frontend tests were run but no actual build was done, so build errors were not caught

Note: Once this lands, the GHA validate job will start failing if there are linting errors. Therefore my other PRs must land first (which fix existing lint errors): #836 and #843.

@rwood-moz
Copy link
Contributor Author

rwood-moz commented Jan 29, 2025

I tested this out via GHA associated with this PR and I verified that:

  • Backend and frontend linting checks run as part of GHA validate workflow
  • If linting errors are found the GHA step/workflow will be marked as failed
  • A frontend build is now done as part of the GHA validate workflow
  • If the frontend build fails the GHA step/workflow will be marked as failed

If you want to have a closer look at these changes running in CI:

Copy link
Collaborator

@devmount devmount left a comment

Choose a reason for hiding this comment

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

Lgtm! Just need to keep in mind to run the linter on my PRs when this landed 😂
Thanks!

@rwood-moz rwood-moz merged commit 4677448 into main Jan 31, 2025
4 checks passed
@rwood-moz rwood-moz deleted the testing/enable-ci-linting branch January 31, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Issues specific to automated testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have frontend validate GHA do a build Enable linting in CI
3 participants