瀏覽代碼

Merge pull request #509 from smoltcp-rs/ci-rustfmt

Enforce rustfmt in CI
Dario Nieuwenhuis 3 年之前
父節點
當前提交
d36202b1b3
共有 1 個文件被更改,包括 18 次插入0 次删除
  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