name: Check clippy
on:
pull_request:
push:
branches:
- master
- stable
tags:
- v*
paths-ignore:
- 'README.md'
jobs:
check-clippy:
name: Check clippy
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5
- name: Checkout sources & submodules
uses: actions/checkout@v3.1.0
with:
fetch-depth: 5
submodules: recursive
- name: Install toolchain
uses: actions-rs/toolchain@v1.0.7
with:
profile: minimal
toolchain: stable
components: clippy, rustfmt
override: true
- name: Checking clippy
uses: actions-rs/cargo@v1.0.3
with:
command: clippy
toolchain: stable
args: --all
- name: Checking clippy
uses: actions-rs/cargo@v1.0.3
with:
command: clippy
toolchain: stable
args: --all --no-default-features --features std,hmac,lazy-static-context