diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 5e8e4d3..11a8ea9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -22,3 +22,18 @@ jobs: - name: Run tests run: cargo test --release --verbose + + fmt: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Install nightly + run: rustup toolchain install nightly + + - name: Install rustfmt + run: rustup +nightly component add rustfmt + + - name: Check fmt + run: cargo +nightly fmt --all -- --check