cloudflare/cloudflared

Public

mirrored fromhttps://github.com/cloudflare/cloudflaredAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
f674b82e2af5a9901ff71f6682143640e446ebd6

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.githooks/pre-push

29lines · modecode

1#!/bin/sh
2# Pre-push hook for cloudflared
3# Runs linting and tests before allowing pushes
4
5set -e
6
7echo "========================================"
8echo "Running pre-push checks..."
9echo "========================================"
10
11# Run formatting check
12echo ""
13echo "==> Checking formatting..."
14make fmt-check
15
16# Run linter
17echo ""
18echo "==> Running linter..."
19make lint
20
21# Run tests
22echo ""
23echo "==> Running tests..."
24make test
25
26echo ""
27echo "========================================"
28echo "All pre-push checks passed!"
29echo "========================================"
30