1// Git hooks, run by hk (jdx/hk), installed with `mise run hooks:install`. The hk release below must be 2// the one in mise.toml (tools/check-versions.sh checks it). 3amends "package://github.com/jdx/hk/releases/download/v2.5.0/hk@2.5.0#/Config.pkl" 4 5local core_tests = new Step { 6 glob = List("crates/postjevsql-core/**", "crates/postjevsql-sidecar/**", "Cargo.lock") 7 // No database, no network, about a second. The whole suite is `mise run test`. 8 check = "cargo test -p postjevsql-core -p postjevsql-sidecar" 9} 10 11hooks { 12 ["pre-push"] { 13 steps { 14 ["core-tests"] = core_tests 15 } 16 } 17}