Skip to content

Commit 89f1ad6

Browse files
feat: add cargo build & test hooks
1 parent e735377 commit 89f1ad6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,17 @@
2020
args: ["--", "-D", "warnings"]
2121
types: [rust]
2222
pass_filenames: false
23+
- id: test
24+
name: test
25+
description: Run tests with cargo test
26+
entry: cargo test
27+
language: system
28+
types: [rust]
29+
args: ["--all-targets", "--", "--nocapture", "--test-threads=1", "--test", "matrix::tests::try_get_row_valid"]
30+
- id: build
31+
name: build
32+
description: Build using cargo build
33+
language: system
34+
types: ["rust"]
35+
entry: cargo build
36+
pass_filenames: false

0 commit comments

Comments
 (0)