#!/bin/bash # Pre-push hook: runs CI checks before pushing # This ensures code quality and prevents broken builds on the remote. # # E2E tests are excluded because they take ~15 min, which causes # the SSH connection to GitHub to timeout (SIGPIPE). # Run them separately with: make e2e # # Install: make setup-hooks # Skip: git push --no-verify set -e echo "🔍 Running CI checks before push..." make ci echo "✅ All checks passed! Pushing..."