-
Notifications
You must be signed in to change notification settings - Fork 25
34 lines (31 loc) · 1.05 KB
/
lint.yml
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 code
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Lint with all features
run: cargo clippy --lib --workspace --all-features --all-targets -- -D warnings
- name: Lint with no features
run: cargo clippy --lib --workspace --no-default-features -- -D warnings
- name: Lint with electrum feature
run: cargo clippy --lib --workspace --no-default-features --features electrum -- -D warnings
- name: Lint with esplora feature
run: cargo clippy --lib --workspace --no-default-features --features esplora -- -D warnings
- name: Lint c-ffi bindings
working-directory: ./bindings/c-ffi
run: cargo clippy
- name: Lint uniffi bindings
working-directory: ./bindings/uniffi
run: cargo clippy