-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (42 loc) · 1.06 KB
/
lint-workspace.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
35
36
37
38
39
40
41
42
name: Lint Workspace
on:
push:
branches:
- main
pull_request:
paths:
- ".github/workflows/lint-workspace.yaml"
- "mls_validation_service/**"
- "xmtp_api_grpc/**"
- "xmtp_api_http/**"
- "xmtp_cryptography/**"
- "xmtp_id/**"
- "xmtp_mls/**"
- "xmtp_proto/**"
- "xmtp_v2/**"
- "xmtp_debug/**"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain"
- "rustfmt.toml"
env:
CARGO_TERM_COLOR: always
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: |
.
- name: Run clippy and fail on warnings
# Exclude bindings_wasm since it only compiles for wasm32
run: cargo clippy --workspace --all-features --all-targets --no-deps --exclude bindings_wasm -- -Dwarnings
- name: Run format check
run: cargo fmt --check