Skip to content

Commit

Permalink
chore: added cargo check to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Jan 9, 2025
1 parent 106ee40 commit 73eb25a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions mise.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 7 additions & 1 deletion tasks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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"

0 comments on commit 73eb25a

Please sign in to comment.