Skip to content

Commit e5030e7

Browse files
committed
Run formatter in CI
Add a job to the CI pipeline to run `cargo fmt --check` with the nightly toolchain.
1 parent 5a8ec75 commit e5030e7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,19 @@ jobs:
104104
with:
105105
command: clippy
106106
args: --all-targets -- -D warnings
107+
108+
Fmt:
109+
name: Fmt
110+
runs-on: ubuntu-latest
111+
steps:
112+
- uses: actions/checkout@v2
113+
- uses: actions-rs/toolchain@v1
114+
with:
115+
profile: minimal
116+
toolchain: nightly
117+
override: true
118+
- run: rustup component add rustfmt
119+
- uses: actions-rs/cargo@v1
120+
with:
121+
command: fmt
122+
args: --check

0 commit comments

Comments
 (0)