forked from xmtp/libxmtp
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 997 Bytes
/
lint-wasm-bindings.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Lint WASM Bindings
on:
pull_request:
paths:
- "bindings_wasm/**"
- ".github/workflows/lint-wasm-bindings.yaml"
- "rustfmt.toml"
- "Cargo.toml"
- "Cargo.lock"
- ".cargo/**"
- "rust-toolchain"
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTFLAGS: -D warnings --cfg tracing_unstable
CARGO_PROFILE_TEST_DEBUG: 0
jobs:
lint:
name: Lint
runs-on: warp-ubuntu-latest-x64-16x
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update rust toolchains
run: rustup update
- name: Cache
uses: Swatinem/rust-cache@v2
with:
workspaces: |
bindings_wasm
- name: Run clippy and fail on warnings
run: cargo clippy --locked --manifest-path bindings_wasm/Cargo.toml --all-features --target wasm32-unknown-unknown --no-deps -- -D warnings
- name: Run format check
run: cargo fmt --manifest-path bindings_wasm/Cargo.toml --check