| 1 | name: Lint |
| 2 | |
| 3 | on: |
| 4 | [push, pull_request, workflow_dispatch] |
| 5 | |
| 6 | jobs: |
| 7 | lint: |
| 8 | name: Lint |
| 9 | runs-on: ubuntu-latest |
| 10 | steps: |
| 11 | - uses: actions/checkout@v2 |
| 12 | with: |
| 13 | submodules: recursive |
| 14 | - uses: dtolnay/rust-toolchain@master |
| 15 | with: |
| 16 | toolchain: nightly |
| 17 | components: rustfmt, clippy |
| 18 | - run: cargo check |
| 19 | - run: cargo fmt -- --check |
| 20 | - run: RUSTFLAGS="--deny warnings" cargo build |
| 21 | - run: cargo clippy --all-features -- --deny warnings |