Skip to content

Conversation

@sidgaikwad
Copy link
Contributor

@sidgaikwad sidgaikwad commented Oct 22, 2025

Summary

  • added script to run lint on commit
  • added script logic to run the tests only if changes in packages and playground

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactor
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING.md
  • My code follows the code style of this project
  • I have added tests where applicable
  • I have tested my changes locally
  • I have linked relevant issues
  • I have added screenshots for UI changes (if applicable)

Screenshots (if applicable)

image

Additional Context

How It Works (Step-by-Step)

  1. Triggered automatically when you run git commit.
  2. Formats staged code using lint-staged.
  3. Runs a full lint check to validate code style and detect syntax issues.
  4. Checks which packages or playground changed using Git diff.
  5. Runs tests only for those changed areas, making the process efficient.
  6. Prevents commit if any test or lint fails — enforcing quality control.
  7. Allows commit only when all checks pass ✅.

Benefits of This Setup

  • Faster commits: Only runs tests where code changed.
  • Better code quality: Enforces linting and testing before merging.
  • Consistent workflow: Works across all environments and developers.
  • Fail-safe commits: Prevents breaking builds from being committed.

@vercel
Copy link

vercel bot commented Oct 22, 2025

@sidgaikwad is attempting to deploy a commit to the motia Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant