From bed5f76eb6ab6351f8f4194da9b9d2a2a47de06a Mon Sep 17 00:00:00 2001 From: ini <81521595+InioX@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:03:20 +0200 Subject: [PATCH] Create rustfmt.yml --- .github/workflows/rustfmt.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/rustfmt.yml diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml new file mode 100644 index 0000000..76bedfd --- /dev/null +++ b/.github/workflows/rustfmt.yml @@ -0,0 +1,17 @@ +name: "rustfmt" +on: + push: + pull_request: + +jobs: + formatting: + name: cargo fmt + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Ensure rustfmt is installed and setup problem matcher + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt + - name: Rustfmt Check + uses: actions-rust-lang/rustfmt@v1