Skip to content

Commit

Permalink
chore(workflows): added more clippy tests
Browse files Browse the repository at this point in the history
Signed-off-by: JadKHaddad <jadkhaddad@gmail.com>
  • Loading branch information
JadKHaddad committed Sep 8, 2024
1 parent 3dd7606 commit 908a125
Showing 1 changed file with 38 additions and 14 deletions.
52 changes: 38 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,33 +43,54 @@ jobs:

- name: Format
run: cargo fmt -- --check

# TODO: run every possible feature combination using a script

- name: Clippy --no-default-features
run: cargo clippy --no-default-features -- -D warnings

- name: Clippy -- default
run: cargo clippy --features=default -- -D warnings

- name: Clippy -- std
run: cargo clippy --features=std -- -D warnings

- name: Clippy -- decoder-checks
run: cargo clippy --features=decoder-checks -- -D warnings
- name: Clippy --all-features
run: cargo clippy --all --all-features -- -D warnings

- name: Clippy -- decode-enmpty-buffer
run: cargo clippy --features=decode-enmpty-buffer -- -D warnings
# Codec

- name: Clippy -- codec
run: cargo clippy --features=codec -- -D warnings


# Iter

- name: Clippy -- iter
run: cargo clippy --features=iter -- -D warnings

- name: Clippy -- iter decoder-checks
run: cargo clippy --features="iter,decoder-checks" -- -D warnings

- name: Clippy -- iter decode-enmpty-buffer
run: cargo clippy --features="iter,decode-enmpty-buffer" -- -D warnings

- name: Clippy -- iter decoder-checks decode-enmpty-buffer
run: cargo clippy --features="iter,decoder-checks,decode-enmpty-buffer" -- -D warnings

# Futures

- name: Clippy -- futures
run: cargo clippy --features=futures -- -D warnings


- name: Clippy -- futures decoder-checks
run: cargo clippy --features="futures,decoder-checks" -- -D warnings

- name: Clippy -- futures decode-enmpty-buffer
run: cargo clippy --features="futures,decode-enmpty-buffer" -- -D warnings

- name: Clippy -- futures decoder-checks decode-enmpty-buffer
run: cargo clippy --features="futures,decoder-checks,decode-enmpty-buffer" -- -D warnings

# Compatibility

- name: Clippy -- std
run: cargo clippy --features=std -- -D warnings

- name: Clippy -- futures-io
run: cargo clippy --features=futures-io -- -D warnings

Expand All @@ -81,10 +102,14 @@ jobs:

- name: Clippy -- tokio
run: cargo clippy --features=tokio -- -D warnings

# Defmt

- name: Clippy -- defmt
run: cargo clippy --features=defmt -- -D warnings

# Logging

- name: Clippy -- logging
run: cargo clippy --features=logging -- -D warnings

Expand All @@ -103,8 +128,7 @@ jobs:
- name: Clippy -- logging tracing
run: cargo clippy --features="logging,tracing" -- -D warnings

- name: Clippy --all-features
run: cargo clippy --all --all-features -- -D warnings

- name: Test
run: cargo test --features "futures,codec,tokio"

# Some combinations are not tested because it is not possible to test them all

0 comments on commit 908a125

Please sign in to comment.