-
Notifications
You must be signed in to change notification settings - Fork 5
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
build: add pre-push hook #2199
build: add pre-push hook #2199
Conversation
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.
Great idea 👏 👏 👏
Co-authored-by: Rupert Bates <[email protected]>
@@ -0,0 +1 @@ | |||
pnpm --filter cdk lint && pnpm --filter cdk test |
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.
With linting - most IDEs support fix on save, might be worth looking at that, it shortens the feedback loop even more.
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.
Interesting idea - something for a next PR optimisation
What does this change?
This adds a pre-push hook that runs the cdk lint & tests before push.
This can hopefully shorten the feedback loop between development and deployment when we forget to update the snapshot tests or when there are linting errors.