]> git.r.bdr.sh - rbdr/page/commitdiff
Add Tarpaulin to CI, fail under 100 main
authorRuben Beltran del Rio <redacted>
Sat, 4 Jan 2025 16:00:54 +0000 (17:00 +0100)
committerRuben Beltran del Rio <redacted>
Sat, 4 Jan 2025 16:00:54 +0000 (17:00 +0100)
.build.yml
Makefile

index 99246701a37a334bc9d7236b147722a3028ca84e..1da097259d75fd9b6854b9784cc8508415b42efe 100644 (file)
@@ -17,6 +17,8 @@ tasks:
   - set_rust: |
       cd page
       make set_rust
+  - install_coverage_tool: |
+      cargo install cargo-tarpaulin
   - install_builders: |
       cargo install cargo-generate-rpm
       cargo install cargo-deb
index 33f107f8dac21b848d4c662a00d36d607432c5e9..d85de45ba116bc40a263fe94f704b340c81cf0fe 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,7 +18,7 @@ test:
        cargo test
 
 coverage:
-       cargo tarpaulin
+       cargo tarpaulin --fail-under 100
 
 format:
        cargo fmt && cargo clippy --fix