run checks in different CI

This commit is contained in:
Cyrix126 2024-06-07 11:05:05 +02:00
parent cb6c49d189
commit b470a00f31

View file

@ -25,10 +25,9 @@ jobs:
matrix: matrix:
os: [macos-latest, ubuntu-latest] os: [macos-latest, ubuntu-latest]
steps: steps:
- uses: actions/checkout@v4
- name: Test - name: Test
run: cargo test --all-features run: cargo test --all-features
# Run typo checker separately.
# This will fast-cancel other CI early if this fails.
typo: typo:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@ -36,7 +35,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Spell Check - name: Spell Check
uses: crate-ci/typos@master uses: crate-ci/typos@master
build: clippy:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
@ -44,8 +43,22 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Clippy (fail on warnings) - 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 - name: Check compilation
run: cargo check --all-features --verbose 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 - name: Documentation
run: cargo doc --workspace --all-features --no-deps run: cargo doc --all-features --no-deps