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:
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