diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100755 index 00000000000..3da035457f8 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1,9 @@ +#!/bin/sh + +if ! command -v cargo-make >/dev/null 2>&1; then + echo "cargo-make is not installed. Install it with:" + echo " cargo install cargo-make" + exit 1 +fi + +cargo make run-ci diff --git a/Cargo.lock b/Cargo.lock index 23acff1398a..cba8455a7ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -440,6 +440,7 @@ dependencies = [ "futures-lite 2.6.1", "getrandom 0.4.2", "hashbrown 0.16.1", + "husky-rs", "iana-time-zone", "icu_calendar", "icu_casemap", @@ -1928,6 +1929,12 @@ version = "1.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" +[[package]] +name = "husky-rs" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b00c51c8ea1f7e8d93caaf071948f766eb331cd55cb9871096614c9291642e" + [[package]] name = "hyper" version = "1.8.1" diff --git a/Cargo.toml b/Cargo.toml index 556f307967f..217ddc9c71e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -144,6 +144,7 @@ futures-channel = "0.3.32" aligned-vec = "0.6.4" temp-env = "0.3.6" strum = { version = "0.28", features = ["derive"] } +husky-rs = "0.3.2" # ICU4X diff --git a/core/engine/Cargo.toml b/core/engine/Cargo.toml index c5f31e5959d..480a7a7adeb 100644 --- a/core/engine/Cargo.toml +++ b/core/engine/Cargo.toml @@ -201,6 +201,7 @@ float-cmp.workspace = true indoc.workspace = true textwrap.workspace = true test-case.workspace = true +husky-rs.workspace = true [target.x86_64-unknown-linux-gnu.dev-dependencies] jemallocator.workspace = true