name: CI
on: [push, pull_request]
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with: { toolchain: beta, override: true, profile: minimal, components: clippy }
- run: cargo clippy --workspace --all-features --tests --examples --benches -- --deny warnings
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with: { toolchain: beta, override: true, profile: minimal, components: rustfmt }
- run: cargo fmt --check
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with: { toolchain: beta, override: true, profile: minimal }
- run: cargo build --no-default-features
- run: cargo build --all-features --examples --tests --benches
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with: { toolchain: beta, override: true, profile: minimal }
- run: cargo test --all-features
- run: cargo test --no-default-features
- run: cargo test --no-default-features --features serde