Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: run all health check commands locally #15118

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"nuke": "./scripts/nuke.sh",
"lint": "yarn packages --parallel run lint",
"lint:contracts": "yarn workspace @unlock-protocol/smart-contracts lint:contracts --fix",
"postinstall": "husky install"
"postinstall": "husky install",
"check": "./scripts/health-check.sh"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -97,4 +98,4 @@
"*.{js,ts,tsx,sol,css,md}": "prettier --write --plugin=prettier-plugin-solidity",
"*.sol": "yarn lint:contracts --noPrompt"
}
}
}
14 changes: 14 additions & 0 deletions scripts/health-check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/sh

# run all checks
yarn workspace @unlock-protocol/networks check:keys
yarn workspace @unlock-protocol/networks check:tokens
yarn workspace @unlock-protocol/networks check:hooks
yarn workspace @unlock-protocol/networks check:verify

yarn workspace @unlock-protocol/subgraph check

yarn workspace @unlock-protocol/governance check
yarn workspace @unlock-protocol/governance check:multisig
yarn workspace @unlock-protocol/governance check:cross-chain

Loading