From 68ec69d41198eb1793ec9b9233488268436b1d19 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Mon, 28 Jun 2021 20:13:06 +0200 Subject: [PATCH] Enforce rustfmt in CI --- .github/workflows/rustfmt.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/rustfmt.yaml diff --git a/.github/workflows/rustfmt.yaml b/.github/workflows/rustfmt.yaml new file mode 100644 index 0000000..fe69133 --- /dev/null +++ b/.github/workflows/rustfmt.yaml @@ -0,0 +1,18 @@ +on: + push: + branches: [ staging, trying, master ] + pull_request: + +name: Rustfmt check +jobs: + fmt: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + protile: minimal + components: rustfmt + - name: Check fmt + run: cargo fmt -- --check