Skip to content

Send commands based on transport state instead of connected state #474

Send commands based on transport state instead of connected state

Send commands based on transport state instead of connected state #474

Workflow file for this run

name: Test workflow
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
# Prevent duplicate builds on internal PRs.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:
node-version: [18, 20]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install
- name: Start Centrifugo
run: docker run -d -p 8000:8000 -e CENTRIFUGO_PRESENCE=true centrifugo/centrifugo:latest centrifugo --client_insecure --http_stream --sse
- name: Lint
run: yarn lint
- name: Test
run: yarn test