Skip to content

Commit

Permalink
ci: add cargo hack to daily-tests.
Browse files Browse the repository at this point in the history
Test the feature powerset of the crate using `cargo hack`. The runtime
of this is too large to use as part of the regular CI flow but it is
helpful for catching feature interaction breakages.
  • Loading branch information
cpu committed Aug 31, 2023
1 parent 94ce539 commit c1ec86d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/daily-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,21 @@ jobs:
# will run a server process that doesn't exit when invoked with no args
- name: Check server acceptor
run: cargo run --bin server_acceptor -- --help

feature-powerset:
name: Feature Powerset
runs-on: ubuntu-20.04
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install cargo hack
uses: taiki-e/install-action@cargo-hack

- name: Check feature powerset
run: cargo hack check --feature-powerset --no-dev-deps

0 comments on commit c1ec86d

Please sign in to comment.