Skip to content

Commit

Permalink
fix: Git pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Feb 18, 2019
1 parent eb71029 commit f32823c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ all: setup build docs
setup:
npm install

# Add Git hook to test before a commit
hooks:
cp pre-commit.sh .git/hooks/pre-commit

# Check schema is valid
test:
npm test
Expand Down
2 changes: 1 addition & 1 deletion pre-commit.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
make lint test
make test

0 comments on commit f32823c

Please sign in to comment.