mirror of
https://github.com/Arcadia-Solutions/arcadia.git
synced 2025-12-16 23:14:15 -06:00
- Add cargo-husky for automatic hook installation - Run cargo sqlx prepare --check before push - Run cargo clippy with warnings as errors before push Closes #403
16 lines
346 B
Bash
Executable File
16 lines
346 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
echo "=== Pre-push checks ==="
|
|
|
|
echo "Checking sqlx prepare in backend/storage..."
|
|
(cd backend/storage && cargo sqlx prepare --check)
|
|
|
|
echo "Checking sqlx prepare in shared..."
|
|
(cd shared && cargo sqlx prepare --check)
|
|
|
|
echo "Running cargo clippy..."
|
|
cargo clippy --all-targets -- -D warnings
|
|
|
|
echo "=== All checks passed! ==="
|