ws-kit 1.0.1

Generic authenticated typed WebSocket: BroadcastHub, RoomManager, heartbeat
Documentation
name: CI

on:
  push:
    branches: [main, master]
  pull_request:

concurrency:
  group: ci-${{ github.ref }}
  cancel-in-progress: true

permissions:
  contents: read

jobs:
  quality:
    uses: WyattAu/engineering-standards/.github/workflows/rust-kit.yml@main
    with:
      tier: a
      all-features: true
      loom: false
      wasm: false
      miri: false
      bench-regression: true

  # Repo-specific: loom model-checks live in src/loom_tests.rs (lib target).
  # --no-default-features drops the axum stack: tokio-tungstenite does not
  # compile under --cfg loom (see README "Concurrency testing").
  loom:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: dtolnay/rust-toolchain@stable
      - uses: Swatinem/rust-cache@v2
      - name: loom models (lib)
        run: RUSTFLAGS="--cfg loom" cargo test --release --lib --no-default-features -- --test-threads=1 loom