Skip to content

Commit dadfbb2

Browse files
byfnoelparksb
authored andcommitted
Enforce consistent style in Rust code with rustfmt (#29)
1 parent 08047ac commit dadfbb2

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222

2323
runs-on: ${{ matrix.platform }}
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- name: setup node
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: 16
3030
- name: install pnpm
@@ -45,3 +45,18 @@ jobs:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
with:
4747
projectPath: src-tauri
48+
49+
fmt:
50+
runs-on: ubuntu-latest
51+
name: Run cargo fmt on stable
52+
steps:
53+
- uses: actions/checkout@v4
54+
with:
55+
submodules: true
56+
- name: Install Rust stable toolchain
57+
uses: dtolnay/rust-toolchain@stable
58+
with:
59+
components: rustfmt
60+
- name: cargo fmt --check
61+
run: cargo fmt --check
62+
working-directory: src-tauri

0 commit comments

Comments
 (0)