From d20835b47e1673f0dd5dd438e8eefa0efb502a52 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Thu, 4 Jul 2024 00:33:19 +0000 Subject: [PATCH] ci: add rustfmt check Signed-off-by: Nick Spinale --- .github/workflows/pr.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 8d416748..d504398e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -51,3 +51,19 @@ jobs: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - name: Run Clippy run: cd tool/microkit && cargo clippy --all-targets --all-features + + rustfmt_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - name: Run rustfmt + run: cd tool/microkit && cargo fmt --check