From a4cff680b0e0c243d4e1a11a1641df6bbb1263e0 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Mon, 10 Jun 2024 22:55:11 +1000 Subject: [PATCH] Speedup CI using `cargo-nextest` Signed-off-by: Jiahao XU --- .github/workflows/ci.yml | 2 ++ justfile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0117875e..a47bf904 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,8 @@ jobs: # just-setup use binstall to install sccache, # which works better when we provide it with GITHUB_TOKEN. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tools: cargo-nextest - run: just test env: diff --git a/justfile b/justfile index d80759d0..cb460e84 100644 --- a/justfile +++ b/justfile @@ -260,7 +260,8 @@ e2e-test-tls: (e2e-test "tls" "1.2") (e2e-test "tls" "1.3") e2e-tests: e2e-test-live e2e-test-manifest-path e2e-test-git e2e-test-other-repos e2e-test-strategies e2e-test-version-syntax e2e-test-upgrade e2e-test-tls e2e-test-self-upgrade-no-symlink e2e-test-uninstall e2e-test-subcrate e2e-test-no-track e2e-test-registries e2e-test-signing e2e-test-continue-on-failure e2e-test-private-github-repo unit-tests: print-env - {{cargo-bin}} test {{cargo-build-args}} + cargo-nextest run {{cargo-build-args}} + cargo test --doc {{cargo-build-args}} test: unit-tests build e2e-tests