Skip to content

Commit

Permalink
use 'cargo test --workspace' in CI (#1793)
Browse files Browse the repository at this point in the history
79caa7b 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'.
  • Loading branch information
the-mikedavis authored Mar 12, 2022
1 parent 0712eb3 commit 61828ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61828ea

Please sign in to comment.