1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

CI: test all features individually

This commit is contained in:
Sylvestre Ledru 2024-12-31 10:53:49 +01:00
parent ed9e80e488
commit d88dc3435b

View file

@ -971,3 +971,26 @@ jobs:
echo "Building and testing $f"
cargo test -p "uu_$f" || exit 1
done
test_all_features:
name: Test all features separately
needs: [ min_version, deps ]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: build and test all features individually
shell: bash
run: |
for f in $(util/show-utils.sh)
do
echo "Running tests with --features=$f and --no-default-features"
cargo test --features=$f --no-default-features
done