1 parent d62acc5 commit 6d43144Copy full SHA for 6d43144
2 files changed
.github/workflows/ci.yml
@@ -10,16 +10,6 @@ env:
10
RUSTFLAGS: -D warnings
11
12
jobs:
13
- fmt:
14
- name: rustfmt
15
- runs-on: ubuntu-latest
16
- steps:
17
- - uses: actions/checkout@v6
18
- - uses: dtolnay/rust-toolchain@stable
19
- with:
20
- components: rustfmt
21
- - run: cargo fmt --all -- --check
22
-
23
clippy:
24
name: clippy
25
runs-on: ubuntu-latest
.github/workflows/rustfmt.yml
@@ -0,0 +1,23 @@
1
+name: rustfmt
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
8
+permissions:
9
+ contents: write
+jobs:
+ rustfmt:
+ name: auto rustfmt
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v7
+ - uses: dtolnay/rust-toolchain@stable
+ with:
+ components: rustfmt
+ - run: cargo fmt --all
+ - uses: stefanzweifel/git-auto-commit-action@v7
+ commit_message: "style: apply rustfmt"
0 commit comments