From 346ac52f3030cc42ab57ab8be66571e7afe17f77 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 27 Dec 2022 16:04:10 +0100 Subject: [PATCH] Add workflow job to check formatting Signed-off-by: Matthias Beyer --- .github/workflows/rust.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index b09a86c..e4be523 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -40,3 +40,14 @@ jobs: components: clippy - run: cargo clippy -- -D warnings + fmt: + needs: [build] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.65.0 + components: rustfmt + - run: cargo fmt --check +