# SPDX-FileCopyrightText: 2026 undoredo contributors
#
# SPDX-License-Identifier: MIT OR Apache-2.0
name: cargo-hack-test
on:
push:
pull_request:
permissions:
contents: read
jobs:
cargo-hack-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- name: Test examples, tests, docs for depth-2 powerset of feature flags
run: |
cargo hack test --feature-powerset --depth 2 --examples --tests
cargo hack test --all-features --doc