diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100644 index 000000000..c6d8f0058 --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -0,0 +1,17 @@ +on: push + +# see: https://github.com/marketplace/actions/rust-rustfmt-check + +name: rustfmt + +jobs: + format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - uses: mbrobbel/rustfmt-check@master + with: + token: ${{ secrets.GITHUB_TOKEN }}