mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
Pre-commit hook that runs tests and lints to avoid build fails (in progress)
Doesn’t work yet — fails even on exit 0 Should only care about files staged for committing, right?
This commit is contained in:
parent
d092873575
commit
5e8bbeadd1
1 changed files with 7 additions and 0 deletions
7
pre-commit.hook
Normal file
7
pre-commit.hook
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
PATH=$PATH:/usr/local/bin:/usr/local/sbin
|
||||
|
||||
npm run test || echo "Tests (or tasks) failed, aborting the commit" && exit 1
|
||||
|
||||
echo "All tests passed, committing your changes"
|
||||
exit 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue