Skip to content

Commit 40992fb

Browse files
authored
Add lint workflow for WASM bindings (#1159)
1 parent c3ea67a commit 40992fb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lint WASM Bindings
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "bindings_wasm/**"
7+
- ".github/workflows/lint-wasm-bindings.yaml"
8+
- "rustfmt.toml"
9+
env:
10+
CARGO_TERM_COLOR: always
11+
jobs:
12+
lint:
13+
name: Lint
14+
runs-on: warp-ubuntu-latest-x64-16x
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Update rust toolchains
20+
run: rustup update
21+
22+
- name: Cache
23+
uses: Swatinem/rust-cache@v2
24+
with:
25+
workspaces: |
26+
bindings_wasm
27+
28+
- name: Run clippy and fail on warnings
29+
run: cargo clippy --manifest-path bindings_wasm/Cargo.toml --all-features --all-targets --no-deps -- -Dwarnings
30+
31+
- name: Run format check
32+
run: cargo fmt --manifest-path bindings_wasm/Cargo.toml --check

0 commit comments

Comments
 (0)