From 90ce72dcaf65ec572126e51e4f45bd1cd1ebc6ff Mon Sep 17 00:00:00 2001 From: Lexo Liu Date: Sun, 13 Sep 2026 23:05:24 -0400 Subject: [PATCH] ci: run tests with cargo nextest --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..5854856 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: [main, dev] + pull_request: + workflow_call: + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@nextest + - uses: Swatinem/rust-cache@v2 + with: + shared-key: test-${{ matrix.os }} + - run: cargo nextest run --workspace --no-tests warn + - run: cargo test --doc --workspace