Skip to content

Commit

Permalink
Husky (#944)
Browse files Browse the repository at this point in the history
* Keep calm and commit

* chore: introduce husky to run test before each commit
  • Loading branch information
mkholjuraev authored Feb 8, 2023
1 parent 6c20611 commit 89bb482
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run test && npm run test:ct && npm run lint
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-react": "^7.22.0",
"glob": "^7.1.6",
"husky": "^8.0.2",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"node-sass": "^7.0.1",
Expand Down Expand Up @@ -149,7 +150,8 @@
"translations:compile": "npx formatjs compile ./build/messages/src/Messages.json --out-file ./locales/en.json",
"test:ct": "BABEL_ENV=componentTest cypress run --component",
"test:openct": "cypress open --component",
"coverage": "bash coverage.sh"
"coverage": "bash coverage.sh",
"prepare": "husky install"
},
"release": {
"analyzeCommits": {
Expand Down

0 comments on commit 89bb482

Please sign in to comment.