From 16ac5bffdabd53fb1c3f39c95840a06c615823b4 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Wed, 22 Apr 2026 00:45:17 +0300 Subject: ci: use nextest for test runs --- .github/workflows/ci.yml | 5 +++++ AGENTS.md | 4 ++-- CONTRIBUTING.md | 2 ++ justfile | 6 +++--- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f4ae98f..4eef595f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,11 @@ jobs: - name: Install Rust uses: dtolnay/rust-toolchain@stable + - name: Install cargo-nextest + uses: taiki-e/install-action@5f57d6cb7cd20b14a8a27f522884c4bc8a187458 # v2 + with: + tool: cargo-nextest + - name: Install Zig uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1 with: diff --git a/AGENTS.md b/AGENTS.md index 7004c987..2a95c17e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -38,8 +38,8 @@ After the change is integrated, remove the task worktree and delete the task bra ## Testing ```bash -just test # cargo tests + maintenance script tests -just check # formatting check + cargo tests + maintenance script tests +just test # cargo nextest + maintenance script tests +just check # formatting check + cargo nextest + maintenance script tests ``` Default flow: run `just check` before committing. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 42a08593..9362989d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -62,6 +62,8 @@ Run the PR checks and make sure they pass. just ci ``` +`just ci` runs `cargo fmt --check` and `cargo nextest run`. + Do not open a PR that bypasses failing tests, formatting, or build errors. ## PR scope diff --git a/justfile b/justfile index 3232568b..2f4b1787 100644 --- a/justfile +++ b/justfile @@ -1,14 +1,14 @@ # herdr task runner -# Run unit tests +# Run tests test: - cargo test + cargo nextest run python3 -m unittest scripts.test_changelog scripts.test_vendor_libghostty_vt # Run PR CI checks ci: cargo fmt --check - cargo test + cargo nextest run # Check formatting + run unit tests + maintenance script tests check: ci -- cgit v1.2.3