-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: pre-push hook replacing cargo check workflow
- Loading branch information
1 parent
3a92f2d
commit 0a7f284
Showing
3 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
echo "Running pre-push checks..." | ||
|
||
echo "Running cargo check..." | ||
if ! cargo check; then | ||
echo "❌ cargo check failed" | ||
exit 1 | ||
fi | ||
|
||
echo "Running cargo check..." | ||
if ! cargo clippy; then | ||
echo "❌ cargo clippy failed" | ||
exit 1 | ||
fi | ||
|
||
echo "✅ All checks passed!" | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters