diff --git a/mise.lock b/mise.lock index a62b4c5bf6..272c12ab10 100644 --- a/mise.lock +++ b/mise.lock @@ -3,6 +3,7 @@ version = "1.7.6" backend = "aqua:rhysd/actionlint" [tools.actionlint.checksums] +actionlint-linux-x86_64 = "sha256:bf567ce887b8b045fdd6001411aea1971e90a49e4f5172801fb648902843c9ec" actionlint-macos-aarch64 = "sha256:baa69aa6ae140310d9d86127d916abd42cd2ad446aef0a04f2a7fe7f54da7d67" "actionlint_1.7.6_darwin_arm64.tar.gz" = "sha256:9a7c9cb2b627bb137ef68742eead2dd5b78f3ddc44876e84c37d323ba28b4710" "actionlint_1.7.6_linux_amd64.tar.gz" = "sha256:5d1a70d9de15fee5371e6f9e20cc29b284e814d6ee1b882f9749e91caf716eba" diff --git a/tasks.toml b/tasks.toml index b19c0ac02c..32093efb12 100644 --- a/tasks.toml +++ b/tasks.toml @@ -4,7 +4,6 @@ clean = "cargo clean" release = "cargo release" signal-test = "node ./test/fixtures/signal-test.js" ci = { depends = ["format", "build", "test"] } -pre-commit = "cargo fmt" lint = { depends = ["lint:*"] } [build] @@ -137,3 +136,10 @@ hide = true tools = { gh = "2.60.0" } run = "echo {{arg(name='greeting')}}; sleep 2; echo 2; sleep 2; echo 3; sleep 0.4; echo 4; sleep 1" description = "a task for testing" + +[pre-commit] +depends = ["pre-commit:*"] +["pre-commit:fmt"] +run = "cargo fmt --all -- --check" +["pre-commit:check"] +run = "cargo check --all-features"