From 49da46bbd09e8b1d4f63f9be5fb7479c5ba3b721 Mon Sep 17 00:00:00 2001 From: Atul Bhosale Date: Wed, 18 Mar 2020 23:29:36 +0530 Subject: [PATCH] Add cargo fmt to build config --- .github/workflows/rust.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0bb665e..65fcb70 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -23,3 +23,18 @@ jobs: if: ${{ matrix.rust != '1.34.2' }} env: FEATURES: ${{ matrix.features }} + rustfmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + components: rustfmt + - name: Run rustfmt check + uses: actions-rs/cargo@v1 + with: + command: fmt + args: -- --check +