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:
commit
2227330fe7
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"
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue