Skip to content

Commit 66bbd7f

Browse files
committed
CI/fmt: introduce separated workflow for formatting
Linting with clippy depends on the Rust version, formatting does not as we depend on nightly now. It makes sense to split in two different files. It will also run in parallel and are independent.
1 parent 487b20e commit 66bbd7f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/fmt.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Format
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
8+
jobs:
9+
format:
10+
name: Format using nightly
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: dtolnay/rust-toolchain@stable
15+
with:
16+
toolchain: nightly
17+
components: rustfmt
18+
- name: rustfmt
19+
run: make check-format

0 commit comments

Comments
 (0)