chore(ci): add go checks in husky

This commit is contained in:
Acbox
2026-03-21 19:18:30 +08:00
parent a7a36df705
commit e6ef0c9ad6
5 changed files with 91 additions and 2 deletions
+18 -1
View File
@@ -7,4 +7,21 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
sh "$SCRIPT_DIR/check-large-files" || exit 1
echo ""
sh "$SCRIPT_DIR/check-pnpm" || exit 1
echo "Running checks..."
sh "$SCRIPT_DIR/check-go" &
PID_GO=$!
sh "$SCRIPT_DIR/check-go-test" &
PID_GO_TEST=$!
sh "$SCRIPT_DIR/check-pnpm" &
PID_PNPM=$!
FAIL=0
wait "$PID_GO" || FAIL=1
wait "$PID_GO_TEST" || FAIL=1
wait "$PID_PNPM" || FAIL=1
[ "$FAIL" -eq 0 ] || exit 1