diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-12 09:19:48 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-12 10:38:21 +0200 |
commit | 2cc0d7de52ba652e41bf9080a07888ed469c1eb3 (patch) | |
tree | 83b03c4cad2872fae9d69e7795979fee4190104f | |
parent | b3cb59b72c67424f8f3d8ba28240ee75c12eb9a8 (diff) |
Use nextest to run teststmp
Lets see whether we get a speed upgrade with `cargo nextest`.
We have to use `cargo-test --doc` for running the doctests, because
nextest does not yet support these.
We have to change the rust version to >1.60.0 here because nextest needs
a recent compiler.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | .github/workflows/pull-request-checks.yml | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/.github/workflows/pull-request-checks.yml b/.github/workflows/pull-request-checks.yml index 5cd42df0..c47f5aea 100644 --- a/.github/workflows/pull-request-checks.yml +++ b/.github/workflows/pull-request-checks.yml @@ -192,11 +192,17 @@ jobs: uses: actions/checkout@v3 - name: enable toolchain via github action - uses: dtolnay/rust-toolchain@1.58.1 + uses: dtolnay/rust-toolchain@1.63.0 - name: Install mold linker uses: rui314/setup-mold@v1 + - name: Install cargo-nextest + uses: baptiste0928/cargo-install@v1 + with: + crate: cargo-nextest + args: --locked + - name: Enable cache # https://github.com/marketplace/actions/rust-cache uses: Swatinem/rust-cache@v2 @@ -205,8 +211,16 @@ jobs: uses: actions-rs/cargo@v1 # https://github.com/marketplace/actions/rust-cargo with: + command: nextest + args: run --no-fail-fast --all-features + + - name: Cargo doctests + uses: actions-rs/cargo@v1 + # https://github.com/marketplace/actions/rust-cargo + with: command: test - args: --no-fail-fast --all-features + args: --doc --no-fail-fast --all-features + cargo-build: name: Run cargo build |