Skip to content

Commit

Permalink
Run all tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojtek242 committed May 3, 2024
1 parent 8daf5f7 commit eda01e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/01-build-and-test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ jobs:
# secrets are not passed to workflows triggered by a pull request from a fork, it will still
# not be possible to run integration tests on pull requests.
- run: cargo build --all-targets
- run: cargo test --lib
- run: cargo test --all-targets
- run: cargo build --all-targets --release
- run: cargo test --lib --release
- run: cargo test --all-targets --release
- if: ${{ ! inputs.msrv }}
run: cargo build --all-targets --all-features
- if: ${{ ! inputs.msrv}}
run: cargo test --lib --all-features
run: cargo test --all-targets --all-features
- if: ${{ ! inputs.msrv }}
run: cargo build --all-targets --release --all-features
- if: ${{ ! inputs.msrv}}
run: cargo test --lib --release --all-features
run: cargo test --all-targets --release --all-features
10 changes: 2 additions & 8 deletions .github/workflows/02-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,7 @@ jobs:
Invoke-WebRequest -Uri "https://github.com/mozilla/grcov/releases/latest/download/grcov-x86_64-pc-windows-msvc.zip" -OutFile C:/grcov.zip
Expand-Archive -LiteralPath C:/grcov.zip -DestinationPath C:/
# Coverage without features.
- if: ${{ contains(inputs.os, 'windows') }}
run: cargo test --lib --no-fail-fast
- if: ${{ ! contains(inputs.os, 'windows') }}
run: cargo test --all-targets --no-fail-fast
- run: cargo test --all-targets --no-fail-fast
- run: ${{ env.PCAP_CI_GRCOV_CMD }}
- run: ${{ env.PCAP_CI_COV_CMD }} --fail-under ${{ env.PCAP_CI_COV_FAIL_UNDER_NO_FEATURES }}
# Clean up coverage artifacts.
Expand All @@ -79,10 +76,7 @@ jobs:
run: rm -rf ./target/debug/{coverage,profraw}
- run: cargo clean -p pcap
# Coverage with features.
- if: ${{ contains(inputs.os, 'windows') }}
run: cargo test --lib --all-features --no-fail-fast
- if: ${{ ! contains(inputs.os, 'windows') }}
run: cargo test --all-targets --all-features --no-fail-fast
- run: cargo test --all-targets --all-features --no-fail-fast
- run: ${{ env.PCAP_CI_GRCOV_CMD }}
- run: ${{ env.PCAP_CI_COV_CMD }} --fail-under ${{ env.PCAP_CI_COV_FAIL_UNDER_ALL_FEATURES }}
# On push to main push results to coverage branch.
Expand Down

0 comments on commit eda01e6

Please sign in to comment.