This workflow installs latest nightly Rust version and invokes these commands in parallel:
- You are living on an edge
- You prefer to use
nightly
versions ofclippy
andrustfmt
, as they has more options available
on: [push, pull_request]
name: Lints
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt, clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
Sure!
This workflow is using following Actions to execute the pipeline, see their pages for the available options: