Skip to content

Commit 8dcbefd

Browse files
committed
Generate test list dynamically
1 parent 3112ac1 commit 8dcbefd

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

‎.github/workflows/check.yml‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,12 @@ jobs:
5151
toolchain: nightly
5252
components: cargo,clippy,rustfmt
5353
- name: Run example binaries
54+
# Find all test crate binaries, extract the basename (no directories or extensions),
55+
# then run them one at a time with cargo
5456
run: |
55-
cargo run --all-features --bin multiple-args
56-
cargo run --all-features --bin multiple-mixed-args
57-
cargo run --all-features --bin return-values
58-
cargo run --all-features --bin return-values-mixed-args
59-
cargo run --all-features --bin return-values-mixed-unit
60-
cargo run --all-features --bin return-values-complex
61-
cargo run --all-features --bin return-values-non-copy
62-
cargo run --all-features --bin return-values-zero-args
63-
cargo run --all-features --bin methods
64-
cargo run --all-features --bin methods-multiple-args
65-
cargo run --all-features --bin methods-return-values
66-
cargo run --all-features --bin methods-mut-self
67-
cargo run --all-features --bin methods-owned-self
68-
cargo run --all-features --bin methods-complex
69-
cargo run --all-features --bin methods-non-copy-arg
57+
find splat-overload-test/src/bin -name "*.rs" | \
58+
sed 's|.*/\([^/]*\).rs|\1|g' | \
59+
xargs --max-args=1 cargo run --all-features --bin
7060
7161
clippy-rust:
7262
name: 4. Clippy lints on Rust crates

0 commit comments

Comments
 (0)