Skip to content

Commit

Permalink
run tests on pre push
Browse files Browse the repository at this point in the history
  • Loading branch information
pettinarip committed Jun 17, 2021
1 parent 1c94b86 commit 637cecc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn check-format && yarn test:web
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
]
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx,json,scss,vue}": [
"**/*.{js,ts,json,scss,css,vue}": [
"prettier --write"
]
},
Expand All @@ -33,9 +33,9 @@
"lint": "yarn workspaces run lint",
"lint:contracts": "yarn workspace @clrfund/contracts run lint",
"lint:web": "yarn workspace @clrfund/vue-app run lint",
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|jsx|ts|tsx|json|css|vue)\"",
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|ts|json|scss|css|vue)\"",
"format": "yarn prettier --write",
"check-format": "yarn prettier --list-different",
"check-format": "yarn prettier --check",
"prepare": "husky install"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion vue-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"serve": "vue-cli-service serve",
"build": "rm -rf dist/ && vue-cli-service build",
"lint": "vue-cli-service lint",
"test": "vue-cli-service test:unit",
"test": "yarn test:lint && vue-cli-service test:unit",
"test:lint": "eslint 'src/**/*.{js,ts,vue}'"
},
"dependencies": {
Expand Down

0 comments on commit 637cecc

Please sign in to comment.