Skip to content

Commit

Permalink
skip unit tests for integration tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Oct 13, 2024
1 parent e3f9c0c commit 9775ea8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,14 @@ jobs:
run: |
# Test all features and no features for each package.
for p in $(cargo metadata --no-deps --format-version 1 | jq -r .packages[].manifest_path); do
pushd $(dirname $p)
cargo test --all-targets --all-features
cargo test --all-targets --no-default-features
popd
# skip unit tests for integration tests on windows
# because integration tests cannot be run on windows anyway
if [[ ! ( ${{ matrix.os == 'windows-latest' }} && "$(grep ref-tests "${p}")" ) ]]; then
pushd $(dirname $p)
cargo test --all-targets --all-features
cargo test --all-targets --no-default-features
popd
fi
done
env:
RUST_BACKTRACE: 1
Expand Down

0 comments on commit 9775ea8

Please sign in to comment.