This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Start ClamAV daemon | |
uses: toblux/[email protected] | |
with: | |
stream_max_length: 1000000 | |
- name: Run tests with separate features | |
run: | | |
cargo test --features tokio -- --skip oversized | |
cargo test --features tokio-stream -- --skip oversized | |
cargo test --features async-std -- --skip oversized | |
- name: Run tests with all features | |
run: cargo test --all-features -- --skip oversized |