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