-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathquick-check.sh
More file actions
executable file
·38 lines (31 loc) · 1.19 KB
/
Copy pathquick-check.sh
File metadata and controls
executable file
·38 lines (31 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# Quick pre-push check - matches GitHub Actions quick-check.yml
# For full test suite, use test-codanna-local.sh
# To auto-fix issues, use auto-fix.sh
set -e
# Match GitHub Actions environment
export CARGO_TERM_COLOR=always
export RUST_BACKTRACE=1
echo "🚀 Quick CI check (matches GitHub Actions quick-check.yml)"
echo "This should complete in ~2-3 minutes"
echo ""
# Ensure we're using the latest stable Rust (matches GitHub Actions)
echo "0️⃣ Ensuring Rust toolchain is up-to-date..."
rustup update stable --no-self-update > /dev/null 2>&1 || true
current_version=$(rustc --version)
echo " Using: $current_version"
echo ""
# Format check - should be instant
echo "1️⃣ Check formatting (not modifying files)..."
cargo fmt --all -- --check
echo "✓ Formatting check passed"
echo ""
echo "2️⃣ Clippy strict mode (all targets and features)..."
cargo clippy --all-targets --all-features -- -D warnings
echo "✓ Clippy check passed"
echo ""
echo "✅ Quick checks passed!"
echo ""
echo "Tips:"
echo " - Run './contributing/scripts/auto-fix.sh' to automatically fix formatting and clippy issues"
echo " - Run './contributing/scripts/full-test.sh' for full test suite before release"