Skip to content

Commit

Permalink
simple matrix partition
Browse files Browse the repository at this point in the history
  • Loading branch information
ecioppettini committed Mar 4, 2022
1 parent e43a54a commit 1955dfc
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
- os: ubuntu-latest
profile: debug
toolchain: nightly
bucket: [1, 2, 3, 4]
env:
RUSTFLAGS: -D warnings
RUST_BACKTRACE: 1
Expand Down Expand Up @@ -170,6 +171,12 @@ jobs:
~/.cargo/git/db
key: cargo-deps-v1-${{ needs.cache_info.outputs.cargo-lock-hash }}

- name: Install nextest
uses: actions-rs/[email protected]
with:
crate: cargo-nextest
use-tool-cache: true

- name: Build jormungandr
uses: actions-rs/cargo@v1
timeout-minutes: 30
Expand Down Expand Up @@ -199,8 +206,8 @@ jobs:
uses: actions-rs/cargo@v1
timeout-minutes: 90
with:
command: test
args: --tests ${{ env.CARGO_FLAGS }}
command: nextest
args: run --partition count:1/4 --tests ${{ env.CARGO_FLAGS }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TMPDIR and TMP are used respectively on unix and windows
Expand All @@ -213,8 +220,8 @@ jobs:
uses: actions-rs/cargo@v1
timeout-minutes: 90
with:
command: test
args: --tests ${{ env.CARGO_FLAGS }} --features network
command: nextest
args: run --partition count:1/4 --tests ${{ env.CARGO_FLAGS }} --features network
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# TMPDIR and TMP are used respectively on unix and windows
Expand Down

0 comments on commit 1955dfc

Please sign in to comment.