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: add pre-push git hooks #44

Merged
merged 1 commit into from
Mar 20, 2024
Merged

chore: add pre-push git hooks #44

merged 1 commit into from
Mar 20, 2024

Conversation

kahboom
Copy link
Collaborator

@kahboom kahboom commented Mar 20, 2024

This PR adds a pre-push git hook using Husky.

On git push it will run the following commands:

  • npm run format to check if changes comply with Prettier config
  • npm run test to check if changes break tests
  • npm run build to check if changes break the ability to build the app

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.96%. Comparing base (f2a5c4e) to head (517e335).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #44   +/-   ##
=======================================
  Coverage   58.96%   58.96%           
=======================================
  Files          13       13           
  Lines        1511     1511           
  Branches       37       37           
=======================================
  Hits          891      891           
  Misses        619      619           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kahboom kahboom merged commit 009afdf into main Mar 20, 2024
14 of 16 checks passed
@kahboom kahboom deleted the husky-precommit branch March 20, 2024 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant