From 1d5ba87b7207500ea55a89b194e08f74662bae65 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 8 Mar 2022 11:25:56 +0100 Subject: [PATCH] ci: Simplify test command by using `-p` instead of `--manifest-path` --- .github/workflows/appservice.yml | 4 ++-- xtask/src/ci.rs | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/appservice.yml b/.github/workflows/appservice.yml index 8a88b44b6..19c700cf3 100644 --- a/.github/workflows/appservice.yml +++ b/.github/workflows/appservice.yml @@ -53,10 +53,10 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: --manifest-path crates/matrix-sdk-appservice/Cargo.toml ${{ matrix.cargo_args }} -- -D warnings + args: -p matrix-sdk-appservice ${{ matrix.cargo_args }} -- -D warnings - name: Test uses: actions-rs/cargo@v1 with: command: test - args: --manifest-path crates/matrix-sdk-appservice/Cargo.toml ${{ matrix.cargo_args }} + args: -p matrix-sdk-appservice ${{ matrix.cargo_args }} diff --git a/xtask/src/ci.rs b/xtask/src/ci.rs index b1b7375d1..b20a6a2cd 100644 --- a/xtask/src/ci.rs +++ b/xtask/src/ci.rs @@ -120,9 +120,7 @@ fn run_feature_tests(cmd: Option) -> Result<()> { ]); let run = |arg_set: &str| { - cmd!("rustup run stable cargo test --manifest-path crates/matrix-sdk/Cargo.toml") - .args(arg_set.split_whitespace()) - .run() + cmd!("rustup run stable cargo test -p matrix-sdk").args(arg_set.split_whitespace()).run() }; match cmd {