diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-22 00:45:17 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-04-22 00:46:18 +0300 |
| commit | 16ac5bffdabd53fb1c3f39c95840a06c615823b4 (patch) | |
| tree | 6f4341cb74ba89eefd5a8402a063dd6eeec34bd4 | |
| parent | 5801db1c146ad57d008bc804e64780cef3f7dbec (diff) | |
ci: use nextest for test runs
| -rw-r--r-- | .github/workflows/ci.yml | 5 | ||||
| -rw-r--r-- | AGENTS.md | 4 | ||||
| -rw-r--r-- | CONTRIBUTING.md | 2 | ||||
| -rw-r--r-- | 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: @@ -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 @@ -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 |
