Skip to content

Checking

Checking #4

Workflow file for this run

name: Checking
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
check:
name: Checking
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [stable, nightly]
steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v4
- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
components: clippy
- id: cache
name: Enable Workflow Cache
uses: Swatinem/rust-cache@v2
- id: check
name: Run Build Checks
run: cargo check --tests --examples --workspace --all-features
- id: lint
name: Run Lint Checks
run: cargo clippy --tests --examples --workspace --all-features -- -D clippy::correctness -D clippy::suspicious -D clippy::complexity -D clippy::perf -D clippy::style -D clippy::pedantic
- id: doc
name: Run Documentation Checks
run: cargo test --doc