Skip to content

Commit

Permalink
Use cargo hack for testing feature powerset
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmacarthur committed Feb 20, 2024
1 parent 6474223 commit 6ed5915
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,13 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable

- name: Test
run: cargo test --workspace

- name: Test (no default features)
run: cargo test --lib --tests --no-default-features

- name: Test (filters)
run: cargo test --lib --tests --no-default-features --features filters

- name: Test (serde)
run: cargo test --lib --tests --no-default-features --features serde

- name: Test (unicode)
run: cargo test --lib --tests --no-default-features --features unicode

- name: Test (filters,serde)
run: cargo test --lib --tests --no-default-features --features filters,serde

- name: Test (serde,unicode)
run: cargo test --lib --tests --no-default-features --features serde,unicode
- uses: extractions/setup-crate@v1
with:
owner: taiki-e
name: cargo-hack

- name: Test (filters,unicode)
run: cargo test --lib --tests --no-default-features --features filters,unicode
- name: Check (feature powerset)
run: cargo hack test --feature-powerset --depth 2 --lib --tests

# ---------------------------------------------------------------------------
# MSRV
Expand Down

0 comments on commit 6ed5915

Please sign in to comment.