Skip to content

Commit e17bb4b

Browse files
LingManlambda-fairy
authored andcommitted
Run rustfmt in CI
1 parent c017d59 commit e17bb4b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,17 @@ jobs:
5454
run: CARGO_TARGET_WASM32_WASI_RUNNER=wasmtime cargo test --target wasm32-wasi --no-default-features
5555
- name: Test (all features)
5656
run: CARGO_TARGET_WASM32_WASI_RUNNER=wasmtime cargo test --target wasm32-wasi --all-features
57+
58+
59+
lints:
60+
name: Rustfmt
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout repository
64+
uses: actions/checkout@v2
65+
- name: Install toolchain
66+
uses: dtolnay/rust-toolchain@stable
67+
with:
68+
components: rustfmt
69+
- name: Check formatting
70+
run: cargo fmt --check

0 commit comments

Comments
 (0)