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

Added Linting as a part of CI #393

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tarunsinghofficial
Copy link
Contributor

@tarunsinghofficial tarunsinghofficial commented Aug 23, 2024

Overview

This PR introduces and fixes #392 for automated linting to our Continuous Integration (CI) pipeline. It aims to ensure consistent code style and catch potential errors early in the development process.

Changes

  • Added a new GitHub Actions workflow file: .github/workflows/ci.yml
  • Configured the workflow to run on push to main/master branches and on pull requests
  • Added a .prettierignore to ignore some package managers
  • Implemented Prettier and ESLint checks for all files
  • Added specific checks for changed files in pull requests

Implementation Details

The new CI workflow does the following:

  1. Check out the code
  2. Sets up Node.js
  3. Installs dependencies
  4. Runs Prettier on all files
  5. Runs ESLint on all files
  6. For pull requests, run Prettier and ESLint on changed files only

Notes

  • Caching of npm artifacts was considered but not implemented. We can add this later if build times become an issue.
  • The workflow is configured to use Node.js version 18. We may need to update this in the future.

Please review and let me know if any changes or additions are needed.

@tarunsinghofficial
Copy link
Contributor Author

tarunsinghofficial commented Aug 26, 2024

@hoch please review the PR, at your convenience. Thanks :)

@tarunsinghofficial
Copy link
Contributor Author

hi @hoch. Any update on this?

@tarunsinghofficial
Copy link
Contributor Author

Hi @hoch, Any update on this PR?

@hoch
Copy link
Member

hoch commented Nov 29, 2024

Apologies. I am currently swamped by urgent tasks at work. I'll ask around if other team members are able to review this change.

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.

Add Linting as a part of CI pipeline
2 participants