diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 064d421..9153d05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,20 @@ on: branches: [ main ] jobs: + format: + name: Check formatting + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + + - name: Check formatting + run: python3 red/scripts/format_rust.py --check + ubuntu: runs-on: ubuntu-latest steps: