Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
name: Rust format

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1
      - uses: actions-rs/toolchain@v1
        with:
            toolchain: stable
            override: true
      - run: rustup component add clippy
      - run: rustup component add rustfmt
      - run: cargo fmt -- --check && cargo clippy -- -Dwarnings