Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/actions/rust/pre-merge/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,12 @@ runs:
test_start=$(date +%s)
if command -v cargo-nextest &> /dev/null; then
if [[ -n "$NEXTEST_FILTER" ]]; then
cargo nextest run --locked --no-fail-fast --profile ci $PARTITION_FLAG $PACKAGE_FLAGS -E "$NEXTEST_FILTER"
# Every test target in the `bdd` crate is `required-features =
# ["bdd"]`, so the `cargo test --no-run` above builds no binaries
# for it. A PR touching only that crate then produces a valid
# filter that matches zero tests, and nextest's default
# `--no-tests=fail` turns that into exit 4 on a green PR.
cargo nextest run --locked --no-fail-fast --no-tests=warn --profile ci $PARTITION_FLAG $PACKAGE_FLAGS -E "$NEXTEST_FILTER"
else
cargo nextest run --locked --no-fail-fast --profile ci $PARTITION_FLAG
fi
Expand Down
Loading