From a67e7d184a1cc20652a1fa44d4d9837b664d577b Mon Sep 17 00:00:00 2001 From: Atul Bhosale Date: Fri, 15 May 2020 22:43:21 +0530 Subject: [PATCH] CI: Add cargo fmt step --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54c5075..faafd8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,3 +52,18 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} args: --all-features + + lint: + name: Rustfmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - run: rustup component add rustfmt + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check