Skip to content

fix(parser): reject binary packets with zero attachments #9

fix(parser): reject binary packets with zero attachments

fix(parser): reject binary packets with zero attachments #9

name: CI (socket.io-parser)
on:
push:
branches:
- '**'
paths:
- 'packages/socket.io-component-emitter/**'
- 'packages/socket.io-parser/**'
- '.github/workflows/ci-socket.io-parser.yml'
pull_request:
paths:
- 'packages/socket.io-component-emitter/**'
- 'packages/socket.io-parser/**'
- '.github/workflows/ci-socket.io-parser.yml'
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Use Node.js 24
uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- name: Install dependencies
run: npm ci
- name: Compile package
run: npm run compile --workspace=socket.io-parser
- name: Run tests
run: npm test --workspace=socket.io-parser
- name: Run browser tests
if: github.event_name == 'push'
run: npm test --workspace=socket.io-parser
env:
BROWSERS: 1
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}