From a3b54458241ebba317decbfc633724ecaf53de2b Mon Sep 17 00:00:00 2001 From: Nugine Date: Thu, 10 Jul 2025 11:33:12 +0800 Subject: [PATCH] ci: use nextest (#148) * ci: use nextest * add doctests back --- .github/actions/setup/action.yml | 3 +++ .github/workflows/ci.yml | 4 +++- Makefile | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index a14d9f15..bf75b354 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -94,6 +94,9 @@ runs: if: inputs.install-cross-tools == 'true' uses: taiki-e/install-action@cargo-zigbuild + - name: Install cargo-nextest + uses: taiki-e/install-action@cargo-nextest + - name: Setup Rust cache uses: Swatinem/rust-cache@v2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac8dd821..9d75584d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,7 +102,9 @@ jobs: cache-save-if: ${{ github.ref == 'refs/heads/main' }} - name: Run tests - run: cargo test --all --exclude e2e_test + run: | + cargo nextest run --all --exclude e2e_test + cargo test --all --doc - name: Check code formatting run: cargo fmt --all --check diff --git a/Makefile b/Makefile index 1fe3ab0a..74cdd215 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,8 @@ check: .PHONY: test test: @echo "🧪 Running tests..." - cargo test --all --exclude e2e_test + cargo nextest run --all --exclude e2e_test + cargo test --all --doc .PHONY: pre-commit pre-commit: fmt clippy check test