We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579e450 commit b3bc50dCopy full SHA for b3bc50d
.github/workflows/rustfmt.yml
@@ -0,0 +1,35 @@
1
+name: Formatting check
2
+
3
+on:
4
+ push:
5
+ branches: [main, ci]
6
+ paths-ignore:
7
+ - docs/**
8
+ - tools/**
9
+ - README.md
10
+ pull_request:
11
+ branches: [main]
12
13
14
15
16
17
+jobs:
18
+ formatting:
19
+ if: github.repository == 'rex-rs/rex'
20
+ name: cargo fmt
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - name: switch rust nightly
25
+ run: |
26
+ rustup default nightly
27
+ rustup component add rustfmt
28
+ - name: formatting rex code
29
+ run: cargo fmt
30
+ - name: formatting samples code
31
32
+ for d in $(find ./samples -name Cargo.toml); do
33
+ echo "→ Processing $d"
34
+ cargo fmt --manifest-path $d --verbose --check
35
+ done
0 commit comments