1on: 2 push: 3 branches: [ master ] 4 pull_request: 5 branches: [ master ] 6 7 8name: Lint 9 10jobs: 11 check: 12 name: Check 13 runs-on: ubuntu-latest 14 steps: 15 - uses: actions/checkout@v2 16 - uses: actions-rs/toolchain@v1 17 with: 18 profile: minimal 19 toolchain: stable 20 override: true 21 - uses: actions-rs/cargo@v1 22 with: 23 command: check 24 25 fmt: 26 name: Format 27 runs-on: ubuntu-latest 28 steps: 29 - uses: actions/checkout@v2 30 - uses: actions-rs/toolchain@v1 31 with: 32 profile: minimal 33 toolchain: stable 34 override: true 35 - run: rustup component add rustfmt 36 - uses: actions-rs/cargo@v1 37 with: 38 command: fmt 39 args: --all -- --check 40 41 clippy: 42 name: Clippy 43 runs-on: ubuntu-latest 44 steps: 45 - uses: actions/checkout@v2 46 - uses: actions-rs/toolchain@v1 47 with: 48 toolchain: stable 49 components: clippy 50 override: true 51 - uses: actions-rs/clippy-check@v1 52 with: 53 token: ${{ secrets.GITHUB_TOKEN }} 54 args: --all-features 55 name: Clippy Output 56