From 61828ea519e27f7ae762917ad74d519b5fe511ac Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sat, 12 Mar 2022 01:04:52 -0600 Subject: [PATCH] use 'cargo test --workspace' in CI (#1793) 79caa7b72bef94bd820758b2ebc20887324f7416 setup helix-term as the default workspace member (which I believe is done to avoid building xtask on every compile). This changes the behavior of 'cargo test' though so that it only runs helix-term tests by default. To run all tests, we switch to 'cargo test --workspace'. --- .github/workflows/build.yml | 1 + .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 776c8651d..f1f731511 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -90,6 +90,7 @@ jobs: uses: actions-rs/cargo@v1 with: command: test + args: --workspace strategy: matrix: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2d0b86e2f..d954385e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -67,7 +67,7 @@ jobs: with: use-cross: ${{ matrix.cross }} command: test - args: --release --locked --target ${{ matrix.target }} + args: --release --locked --target ${{ matrix.target }} --workspace - name: Build release binary uses: actions-rs/cargo@v1