name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- '*'
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