Clippy lints in your Pull Requests
This GitHub Action executes clippy
and posts all lints as annotations for the pushed commit, as in the live example here.
This example is utilizing toolchain Actions
to install the most recent nightly clippy version.
on: push
name: Clippy check
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: clippy
override: true
- uses: actions-rs-plus/[email protected]
with:
args: --all-featureson: push
name: Clippy check
jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- run: rustup component add clippy
- uses: actions-rs-plus/[email protected]
with:
args: --all-features| Name | Required | Description | Type | Default |
|---|---|---|---|---|
toolchain |
Rust toolchain to use; override or system default toolchain will be used if omitted | string | ||
args |
Arguments for the cargo clippy command |
string | ||
use-cross |
Use cross instead of cargo |
bool | false | |
working-directory |
Specify where rust directory is | string | . |
For extra details about the toolchain, args and use-cross inputs,
see cargo Action documentation.
The sky
