• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1on: [push, pull_request]
2
3name: Lints
4
5jobs:
6  clippy:
7    name: Clippy
8    runs-on: ubuntu-latest
9    steps:
10      - uses: actions/checkout@v2
11      - uses: actions-rs/toolchain@v1
12        with:
13          profile: minimal
14          toolchain: nightly
15          override: true
16          components: rustfmt, clippy
17      - uses: actions-rs/cargo@v1
18        with:
19          command: fmt
20          args: --all -- --check
21      - uses: actions-rs/cargo@v1
22        with:
23          command: clippy
24          args: --all --examples --features=std -- -D warnings
25      # don't forget the no_std example!
26      - uses: actions-rs/cargo@v1
27        with:
28          command: fmt
29          args: --manifest-path example_no_std/Cargo.toml
30      - uses: actions-rs/cargo@v1
31        with:
32          command: clippy
33          args: --manifest-path example_no_std/Cargo.toml
34