diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100755 index 0000000..68af6ee --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -0,0 +1,9 @@ +name: Check formatting with rustfmt +run-name: Ensure rustfmt check passes +on: [push] +jobs: + Check-Formatting: + runs-on: rust-latest + steps: + - run: rustup component add rustfmt + - run: rustfmt --edition 2021 --check operator/src/main.rs