From 62e20946deff2dec3763e89cf5e567f1527846cf Mon Sep 17 00:00:00 2001 From: Angelo Fallaria Date: Thu, 3 Feb 2022 17:04:27 +0800 Subject: [PATCH] ci: add formatting checker --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ebe141..08a1010 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,3 +18,14 @@ jobs: - name: Run tests run: cargo test --verbose + + rustfmt: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Check formatting + run: | + cargo fmt -- --check