fix: run test only once

This commit is contained in:
Cyrix126 2024-06-07 10:57:46 +02:00
parent 5c47849875
commit cb6c49d189

View file

@ -19,8 +19,14 @@ jobs:
submodules: recursive submodules: recursive
- name: Format - name: Format
run: cargo fmt --all --check run: cargo fmt --all --check
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Test - name: Test
run: cargo test run: cargo test --all-features
# Run typo checker separately. # Run typo checker separately.
# This will fast-cancel other CI early if this fails. # This will fast-cancel other CI early if this fails.
typo: typo:
@ -38,10 +44,8 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Clippy (fail on warnings) - 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 - name: Check compilation
run: cargo check --all-features --verbose run: cargo check --all-features --verbose
- name: Tests
run: cargo test --all-features
- name: Documentation - name: Documentation
run: cargo doc --workspace --all-features --no-deps run: cargo doc --workspace --all-features --no-deps