mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
CI: test all features individually
This commit is contained in:
parent
ed9e80e488
commit
d88dc3435b
1 changed files with 23 additions and 0 deletions
23
.github/workflows/CICD.yml
vendored
23
.github/workflows/CICD.yml
vendored
|
@ -971,3 +971,26 @@ jobs:
|
||||||
echo "Building and testing $f"
|
echo "Building and testing $f"
|
||||||
cargo test -p "uu_$f" || exit 1
|
cargo test -p "uu_$f" || exit 1
|
||||||
done
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue