Skip to content

Commit 207e27d

Browse files
FreezyLemonYeungOnion
authored andcommitted
ci: check all feature combinations
1 parent d18485c commit 207e27d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ jobs:
2020
with:
2121
components: clippy
2222

23-
- name: Run cargo clippy
23+
- name: Run cargo clippy (default features)
2424
run: cargo clippy --all-targets
2525

26-
- name: Run cargo clippy without default features
27-
run: cargo clippy --no-default-features --all-targets
28-
2926
fmt:
3027
runs-on: ubuntu-latest
3128
steps:
@@ -65,3 +62,15 @@ jobs:
6562
- name: Test default features
6663
run: cargo test
6764

65+
features:
66+
needs: [clippy, fmt]
67+
runs-on: ubuntu-latest
68+
steps:
69+
- uses: actions/checkout@v4
70+
- name: Install Rust stable
71+
uses: dtolnay/rust-toolchain@stable
72+
- name: Install cargo-hack
73+
uses: taiki-e/install-action@cargo-hack
74+
- uses: Swatinem/rust-cache@v2
75+
- name: Check all possible feature sets
76+
run: cargo hack check --feature-powerset --no-dev-deps

0 commit comments

Comments
 (0)