name: Rust fmt on: push: branches: - main paths-ignore: - '*.md' env: CARGO_TERM_COLOR: always jobs: fmt: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Setup Rust toolchain uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true components: rustfmt, clippy - name: Check cargo fmt uses: actions-rs/cargo@v1 with: command: fmt args: --all --check