backend/curl handle pause related errors #240
Workflow file for this run
This file contains hidden or 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: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test-linux-generic: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: cargo build --verbose --all-features | |
| - name: Run tests | |
| run: cargo test --verbose --all-features | |
| - name: Run backend/curl tests | |
| run: cargo test --verbose --all-features -p nyquest-backend-curl | |
| - name: Run backend/reqwest tests | |
| run: cargo test --verbose --all-features -p nyquest-backend-reqwest | |
| - name: Run clippy | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| - name: Run rustfmt | |
| run: cargo fmt --all --check | |
| test-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: cargo build --verbose --all-features | |
| - name: Run backend/curl tests | |
| run: cargo test --verbose --all-features -p nyquest-backend-curl | |
| - name: Run backend/winrt tests | |
| run: cargo test --verbose --all-features -p nyquest-backend-winrt | |
| - name: Run backend/winhttp tests | |
| run: cargo test --verbose --all-features -p nyquest-backend-winhttp | |
| test-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build | |
| run: cargo build --verbose --all-features | |
| - name: Run backend/curl tests | |
| run: cargo test --verbose --all-features -p nyquest-backend-curl | |
| - name: Run backend/nsurlsession tests | |
| run: cargo test --verbose --all-features -p nyquest-backend-nsurlsession | |
| test-wasm: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install wasm-pack | |
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
| - name: Install wasm32-unknown-unknown target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Run tests | |
| run: wasm-pack test --node backends/reqwest --features async |