aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/rustfmt.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/rustfmt.yml')
-rw-r--r--.github/workflows/rustfmt.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml
new file mode 100644
index 0000000..bd5997c
--- /dev/null
+++ b/.github/workflows/rustfmt.yml
@@ -0,0 +1,23 @@
+on:
+ push:
+ branches: [ staging, trying, master ]
+ pull_request:
+
+name: Code formatting check
+
+jobs:
+ fmt:
+ name: rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ components: rustfmt
+ - uses: actions-rs/cargo@v1
+ with:
+ command: fmt
+ args: --all -- --check