Skip to content

Update CI

Update CI #98

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: Swatinem/rust-cache@v2
- run: rustup component add clippy rustfmt
- name: Rustfmt
run: cargo fmt --all -- --check
- 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: Swatinem/rust-cache@v2
- run: cargo test