Skip to content

Commit

Permalink
ci: split feature powerset job per crate
Browse files Browse the repository at this point in the history
The current job takes too long and fails due to the exponential growth caused by new features introduced in #188
  • Loading branch information
eopb committed Oct 17, 2024
1 parent e7fcd56 commit ec494fc
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
command: test
args: --workspace --all-targets --all-features

test-features:
name: Run test suite with every feature combination
test-features-reqwest-middleware:
name: Run test suite for `reqwest-middleware` with every feature combination
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -38,7 +38,39 @@ jobs:
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: test
run: cargo hack test --feature-powerset
run: cargo hack test --feature-powerset -p reqwest-middleware
test-features-retry:
name: Run test suite for `reqwest-retry` with every feature combination
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: test
run: cargo hack test --feature-powerset -p reqwest-retry
test-features-reqwest-tracing:
name: Run test suite for `reqwest-tracing` with every feature combination
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: test
run: cargo hack test --feature-powerset -p reqwest-tracing

rustfmt:
name: Rustfmt
Expand Down

0 comments on commit ec494fc

Please sign in to comment.