Skip to content

Commit b00fe8c

Browse files
committed
Run cargo fmt --check in CI
Similar to the clang case, check formatting prior to building the tests. I noticed a couple of inconsistencies while working on a new test, and realized that we are not enforcing formatting.
1 parent 1ff3c4f commit b00fe8c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/compile-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
toolchain: stable
6464
target: wasm32-wasip1
6565

66+
- name: Run `cargo-fmt`
67+
run: |
68+
cargo fmt --manifest-path ./tests/rust/wasm32-wasip3/Cargo.toml --check
69+
cargo fmt --manifest-path ./tests/rust/wasm32-wasip1/Cargo.toml --check
70+
6671
- name: Build tests
6772
working-directory: tests/rust
6873
run: |

0 commit comments

Comments
 (0)