Skip to content

improve WebSocket broken connection detection #33

improve WebSocket broken connection detection

improve WebSocket broken connection detection #33

Workflow file for this run

name: CI
on: [ push, pull_request ]
env:
CARGO_TERM_COLOR: always
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
- uses: actions-rust-lang/rustfmt@v1
clippy:
runs-on: ubuntu-latest
steps:
- name: Install libpcsclite-dev
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- run: cargo clippy --all-targets --all-features -- -D warnings
tests-1:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
toolchain:
- stable
- nightly
target:
- x86_64-unknown-linux-gnu
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- name: Install libpcsclite-dev
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }} ${{ matrix.features }}
- run: cargo doc --target ${{ matrix.target }} ${{ matrix.features }}
tests-2:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
toolchain:
- stable
- nightly
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test ${{ matrix.features }}
- run: cargo doc ${{ matrix.features }}
MSRV-1:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
toolchain:
- "1.70"
target:
- x86_64-unknown-linux-gnu
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} to ${{ matrix.target }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- name: Install libpcsclite-dev
run: |
sudo apt update
sudo apt install libpcsclite-dev
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
- run: cargo test --lib --bins --target ${{ matrix.target }} ${{ matrix.features }}
MSRV-2:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- windows-latest
toolchain:
- "1.70"
features:
-
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --lib --bins ${{ matrix.features }}