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

Merge pull request #7038 from sylvestre/ci

CI: test all features individually
This commit is contained in:
Daniel Hofstetter 2024-12-31 14:56:58 +01:00 committed by GitHub
commit 2227330fe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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