Skip to content

Better lint config (#25) #92

Better lint config (#25)

Better lint config (#25) #92

Workflow file for this run

on:
push:
branches:
- main
pull_request:
name: CI
jobs:
lint-rust:
name: Lint Rust
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Clippy
env:
RUSTFLAGS: -D warnings
run: cargo clippy --workspace
- name: Clippy (all features)
env:
RUSTFLAGS: -D warnings
run: cargo clippy --workspace --all-features
- name: Check documentation
env:
RUSTDOCFLAGS: -D warnings
run: cargo doc --workspace --all-features --no-deps --document-private-items
test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check