fix: Don't swallow exit code when hakari test fails

pull/24376/head
Marko Mikulicic 2021-12-14 14:37:53 +01:00
parent 8717bfa747
commit b0c6713bd7
3 changed files with 12 additions and 2 deletions

View File

@ -154,10 +154,18 @@ jobs:
- cache_restore
- run:
name: Check that the workspace hack crate contains all features in use
command: cargo hakari generate --diff || echo "If this fails, fix it by running \`cargo hakari generate\` locally and committing the changes"
command: |
cargo hakari generate --diff || {
echo "If this fails, fix it by running \`cargo hakari generate\` locally and committing the changes"
exit 1
}
- run:
name: Check that all crates in the workspace depend on the workspace hack crate
command: cargo hakari manage-deps --dry-run || echo "If this fails, fix it by running \`cargo hakari manage-deps\` locally and committing the changes"
command: |
cargo hakari manage-deps --dry-run || {
echo "If this fails, fix it by running \`cargo hakari manage-deps\` locally and committing the changes"
exit 1
}
test:
docker:

1
Cargo.lock generated
View File

@ -4988,6 +4988,7 @@ dependencies = [
"futures-util",
"getrandom",
"hashbrown",
"hyper",
"indexmap",
"log",
"memchr",

View File

@ -24,6 +24,7 @@ futures-task = { version = "0.3", default-features = false, features = ["alloc",
futures-util = { version = "0.3", features = ["alloc", "async-await", "async-await-macro", "channel", "futures-channel", "futures-io", "futures-macro", "futures-sink", "io", "memchr", "sink", "slab", "std"] }
getrandom = { version = "0.2", default-features = false, features = ["std"] }
hashbrown = { version = "0.11", features = ["ahash", "inline-more", "raw"] }
hyper = { version = "0.14", features = ["client", "full", "h2", "http1", "http2", "runtime", "server", "socket2", "stream", "tcp"] }
indexmap = { version = "1", default-features = false, features = ["std"] }
log = { version = "0.4", default-features = false, features = ["std"] }
memchr = { version = "2", features = ["std"] }