From cb6c49d189a3dc72e26299832f62bf5d6a2a90de Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Fri, 7 Jun 2024 10:57:46 +0200 Subject: [PATCH] fix: run test only once --- .github/workflows/rust.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 347096c..c7fd509 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,8 +19,14 @@ jobs: submodules: recursive - name: Format run: cargo fmt --all --check + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest] + steps: - name: Test - run: cargo test + run: cargo test --all-features # Run typo checker separately. # This will fast-cancel other CI early if this fails. typo: @@ -38,10 +44,8 @@ jobs: steps: - uses: actions/checkout@v4 - name: Clippy (fail on warnings) - run: cargo clippy --workspace --all-features --all-targets -- -D warnings + run: cargo clippy --all-features --all-targets -- -D warnings - name: Check compilation run: cargo check --all-features --verbose - - name: Tests - run: cargo test --all-features - name: Documentation run: cargo doc --workspace --all-features --no-deps