diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8b5fafd..cb246924 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,3 +82,11 @@ jobs: - name: Mark the job as unsuccessful if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') run: exit 1 + fmt: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: mkroening/rust-toolchain-toml@main + - name: Rustfmt + run: cargo fmt --check