Use cargo hack
to test feature powerset
#24
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
roadster_feature_powerset: | |
name: Feature powerset | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install `cargo hack` | |
run: cargo binstall cargo-hack | |
- name: Test | |
run: cargo hack test --no-fail-fast --feature-powerset --no-dev-deps --workspace | |
- name: Check | |
run: cargo hack check --feature-powerset --no-dev-deps --workspace | |
- name: Clippy | |
run: cargo hack clippy --workspace --all-targets --feature-powerset --no-dev-deps -- -D warnings | |
check_formatting: | |
name: Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Formatting | |
run: cargo fmt --all --check | |
check-docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Docs | |
env: | |
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private-doc-tests" | |
run: cargo doc --all-features --no-deps |