Skip to content

clippy

clippy #9

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v4
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
- name: Run default tests
run: cargo test --workspace
- name: Run write-experimental tests
run: cargo test --workspace --features experimental-write
# Run examples and compile tests on stable only
compile-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run default tests
run: cargo test -- --ignored
- name: Run write-experimental tests
run: cargo test --features experimental-write -- --ignored
doc:
name: Documentation
runs-on: ubuntu-latest
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: dtolnay/install@cargo-docs-rs
- run: cargo docs-rs