diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c7fd509..8ba0228 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,10 +25,9 @@ jobs: matrix: os: [macos-latest, ubuntu-latest] steps: + - uses: actions/checkout@v4 - name: Test run: cargo test --all-features - # Run typo checker separately. - # This will fast-cancel other CI early if this fails. typo: runs-on: ubuntu-latest steps: @@ -36,7 +35,7 @@ jobs: uses: actions/checkout@v4 - name: Spell Check uses: crate-ci/typos@master - build: + clippy: runs-on: ${{ matrix.os }} strategy: matrix: @@ -44,8 +43,22 @@ jobs: steps: - uses: actions/checkout@v4 - name: Clippy (fail on warnings) - run: cargo clippy --all-features --all-targets -- -D warnings + run: cargo clippy --all-features -- -D warnings + check: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest] + steps: + - uses: actions/checkout@v4 - name: Check compilation run: cargo check --all-features --verbose + doc: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest, ubuntu-latest] + steps: + - uses: actions/checkout@v4 - name: Documentation - run: cargo doc --workspace --all-features --no-deps + run: cargo doc --all-features --no-deps