Skip to content

Commit

Permalink
chore(ci): More exhaustively check features
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Mar 28, 2024
1 parent 92d486c commit 9258d9a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,11 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- name: Build
run: cargo test --workspace --no-run
- name: Default features
run: cargo test --workspace
- name: All features
run: cargo test --workspace --all-features
- name: No-default features
run: cargo test --workspace --no-default-features
- name: Test
run: cargo hack test --feature-powerset --workspace
msrv:
name: "Check MSRV"
runs-on: ubuntu-latest
Expand All @@ -65,11 +62,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- name: Default features
run: cargo hack check --locked --rust-version --ignore-private --workspace --all-targets
- name: All features
run: cargo hack check --locked --rust-version --ignore-private --workspace --all-targets --all-features
- name: No-default features
run: cargo hack check --locked --rust-version --ignore-private --workspace --all-targets --no-default-features
run: cargo hack check --feature-powerset --locked --rust-version --ignore-private --workspace --all-targets
lockfile:
runs-on: ubuntu-latest
steps:
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/rust-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,11 @@ jobs:
with:
toolchain: ${{ matrix.rust }}
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- name: Build
run: cargo test --workspace --no-run
- name: Default features
run: cargo test --workspace
- name: All features
run: cargo test --workspace --all-features
- name: No-default features
run: cargo test --workspace --no-default-features
- name: Test
run: cargo hack test --feature-powerset --workspace
latest:
name: "Check latest dependencies"
runs-on: ubuntu-latest
Expand All @@ -55,13 +52,10 @@ jobs:
with:
toolchain: stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@cargo-hack
- name: Update dependencues
run: cargo update
- name: Build
run: cargo test --workspace --no-run
- name: Default features
run: cargo test --workspace
- name: All features
run: cargo test --workspace --all-features
- name: No-default features
run: cargo test --workspace --no-default-features
- name: Test
run: cargo hack test --feature-powerset --workspace

0 comments on commit 9258d9a

Please sign in to comment.