forked from RGB-Tools/rgb-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (25 loc) · 871 Bytes
/
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
name: Lint code
on:
push:
branches: [ "cross_platform_GH_actions" ]
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 -- -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