From 15ed54705bf23763cb881bc4caeef741d2b50c9a Mon Sep 17 00:00:00 2001 From: Hugo C <911307+hugocaillard@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:28:59 +0200 Subject: [PATCH] ci: run cargo format --check (#103) --- .github/workflows/ci.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 58125bb..ac35284 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,6 +15,19 @@ concurrency: cancel-in-progress: true jobs: + format: + name: Format check + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Rust toolchain + run: rustup toolchain install stable --profile minimal --component rustfmt + + - name: Run rustfmt + run: cargo fmt --all -- --check + build: runs-on: ubuntu-latest outputs: