Skip to content
Myr

CI: Run clippy on stable and use msrv setting in `clippy.toml`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Niklas Mohrin · committed by David Peter · parent f1a5aa0 · Browse files · 2 files+21 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+21 added−6 removed

  • other:+21 added−6 removed

2 files+21 added−6 removed

modified:.github/workflows/CICD.yml+20 added-6 removed
12 unmodified lines
13 tags:14 - '*'1516jobs:17 min_version:18 name: Minimum supported rust version17 code_quality:18 name: Code quality19 runs-on: ubuntu-20.0420 steps:21 - name: Checkout source code22 uses: actions/checkout@v22324 - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})23 - name: Install rust toolchain24 uses: actions-rs/toolchain@v125 with:27 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}26 toolchain: stable27 default: true28 profile: minimal # minimal component installation (ie, no documentation)29 components: clippy, rustfmt30 - name: Ensure `cargo fmt` has been run31 uses: actions-rs/cargo@v132 with:33 command: fmt34 args: -- --check36 - name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)35 - name: Ensure MSRV is set in `clippy.toml`36 run: grep "^msrv = \"${{ env.MIN_SUPPORTED_RUST_VERSION }}\"\$" clippy.toml37 - name: Run clippy38 uses: actions-rs/cargo@v139 with:40 command: clippy41 args: --locked --all-targets --all-features4243 min_version:44 name: Minimum supported rust version45 runs-on: ubuntu-20.0446 steps:47 - name: Checkout source code48 uses: actions/checkout@v249 - name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})50 uses: actions-rs/toolchain@v151 with:52 toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}53 default: true54 profile: minimal # minimal component installation (ie, no documentation)55 - name: Run tests56 uses: actions-rs/cargo@v157 with:58 command: test
296 unmodified lines
added:clippy.toml+1 added