summaryrefslogtreecommitdiffstats
path: root/.github/workflows/rustfmt.yml
blob: 824c299ab0f47eb13bcdd8789b2b4d53752b2f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
on: [push, pull_request]

name: Code formatting check

jobs:
  fmt:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          override: true
          components: rustfmt
      - uses: actions-rs/cargo@v1
        with:
          command: fmt
          args: --all -- --check