Skip to content

Commit

Permalink
ci: check all feature combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
FreezyLemon authored and YeungOnion committed Sep 10, 2024
1 parent d18485c commit 207e27d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ jobs:
with:
components: clippy

- name: Run cargo clippy
- name: Run cargo clippy (default features)
run: cargo clippy --all-targets

- name: Run cargo clippy without default features
run: cargo clippy --no-default-features --all-targets

fmt:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -65,3 +62,15 @@ jobs:
- name: Test default features
run: cargo test

features:
needs: [clippy, fmt]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- uses: Swatinem/rust-cache@v2
- name: Check all possible feature sets
run: cargo hack check --feature-powerset --no-dev-deps

0 comments on commit 207e27d

Please sign in to comment.