CI #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: Swatinem/rust-cache@v2 | |
- run: cargo fmt --check | |
- run: cargo clippy --all-targets --all-features -- --no-deps | |
env: | |
# Make sure CI fails on all warnings, including Clippy lints. | |
RUSTFLAGS: "-Dwarnings" | |
- run: cargo doc --all-features --no-deps | |
env: | |
# Make sure CI fails on all warnings, including Clippy lints. | |
RUSTDOCFLAGS: "-Dwarnings" | |
- run: cargo test | |
udeps: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bnjbvr/cargo-machete@main |