Skip to content

Report line number #110

Report line number

Report line number #110

Workflow file for this run

name: Linting
on: [push, pull_request]
jobs:
dependency-lint:
name: Dependency linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: EmbarkStudios/cargo-deny-action@v1
with:
arguments: --all-features
command-arguments: --allow license-not-encountered
code-lint:
name: Code linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: clippy, rust-src
- run: cargo clippy --all-features -- --deny warnings
code-format:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, rust-src
- run: cargo fmt -- --check