cargo: bump to v0.11.0-dev #21
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: [ pull_request ] | |
jobs: | |
code-check: | |
name: Code Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Parse MSRV | |
run: sed -n 's/^rust-version = "\(.*\)"$/RUSTUP_TOOLCHAIN=\1/p' Cargo.toml >> $GITHUB_ENV | |
- name: Install Rust Toolchain | |
run: rustup toolchain install $RUSTUP_TOOLCHAIN | |
- name: Install Clippy and Rustfmt | |
run: rustup component add clippy rustfmt | |
- name: Check format | |
run: cargo fmt --check | |
- name: Clippy check | |
run: | | |
cargo clippy --no-deps -- --deny=warnings | |
cargo clippy --no-deps --no-default-features -- --deny=warnings | |
cargo test |