Skip to content

Commit a47f082

Browse files
committed
Added rustfmt to CI
1 parent 9564be2 commit a47f082

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/rust.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
env:
7171
FEATURES: ${{ matrix.features }}
7272
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-gnu-gcc
73+
7374
cross_compile_wasm:
7475
runs-on: ubuntu-latest
7576
steps:
@@ -96,3 +97,29 @@ jobs:
9697
run: cargo test -vv --target wasm32-unknown-unknown
9798
env:
9899
CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_RUNNER: wasm-bindgen-test-runner
100+
101+
rustfmt:
102+
name: Check Formatting
103+
runs-on: ubuntu-latest
104+
steps:
105+
- uses: actions/checkout@v2
106+
- uses: actions-rs/toolchain@v1
107+
with:
108+
toolchain: stable
109+
components: rustfmt
110+
111+
# Check the main crate
112+
- uses: actions-rs/cargo@v1
113+
with:
114+
command: fmt
115+
args: --all -- --check
116+
117+
# Check the fuzz crates
118+
- uses: actions-rs/cargo@v1
119+
with:
120+
command: fmt
121+
args: --manifest-path fuzz/Cargo.toml -- --check
122+
- uses: actions-rs/cargo@v1
123+
with:
124+
command: fmt
125+
args: --manifest-path fuzz-afl/Cargo.toml -- --check

0 commit comments

Comments
 (0)