Explorar o código

Enforce rustfmt in CI

Dario Nieuwenhuis %!s(int64=3) %!d(string=hai) anos
pai
achega
3abc8cf72e
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      .github/workflows/rustfmt.yaml

+ 18 - 0
.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