mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 07:50:45 +00:00
husky: run tests on commit
This commit is contained in:
Regular → Executable
+11
-1
@@ -1 +1,11 @@
|
||||
npx lint-staged
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# Run tests first
|
||||
npm run test || {
|
||||
echo "Tests failed - commit aborted"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Then run lint-staged if tests pass
|
||||
npx lint-staged
|
||||
Reference in New Issue
Block a user