Skip to content

Commit

Permalink
rust.yml split tests to two steps
Browse files Browse the repository at this point in the history
Split two different test focuses into two
"test" steps within the job.
  • Loading branch information
jtmoon79 committed Sep 15, 2022
1 parent a0887a3 commit 0593bbd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,16 @@ jobs:
set -eux
cargo build --verbose
cargo build --verbose --release
- name: Run Tests
- name: Run All Tests Single-threaded
run: |
set -eux
cargo test -j1 --verbose --all-targets --all-features -- \
--test-threads=1
cargo test -j2 --verbose -- --test-threads=2
cargo test -j8 --verbose -- --test-threads=8
- name: Run Lib Tests Multi-threaded
run: |
set -eux
cargo test -j2 --lib --verbose -- --test-threads=2
cargo test -j8 --lib --verbose -- --test-threads=8
- name: Build Documentation
run: cargo doc --locked --release --frozen --no-deps -v
# run code coverage with rust "nightly", upload to codecov.io
Expand Down

0 comments on commit 0593bbd

Please sign in to comment.