ci: add missing path filters #5
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: CI (@socket.io/cluster-adapter) | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| paths: | |
| - 'packages/engine.io/**' | |
| - 'packages/engine.io-client/**' | |
| - 'packages/engine.io-parser/**' | |
| - 'packages/socket.io/**' | |
| - 'packages/socket.io-adapter/**' | |
| - 'packages/socket.io-client/**' | |
| - 'packages/socket.io-cluster-adapter/**' | |
| - 'packages/socket.io-component-emitter/**' | |
| - 'packages/socket.io-parser/**' | |
| - '.github/workflows/ci-socket.io-cluster-adapter.yml' | |
| pull_request: | |
| paths: | |
| - 'packages/engine.io/**' | |
| - 'packages/engine.io-client/**' | |
| - 'packages/engine.io-parser/**' | |
| - 'packages/socket.io/**' | |
| - 'packages/socket.io-adapter/**' | |
| - 'packages/socket.io-client/**' | |
| - 'packages/socket.io-cluster-adapter/**' | |
| - 'packages/socket.io-component-emitter/**' | |
| - 'packages/socket.io-parser/**' | |
| - '.github/workflows/ci-socket.io-cluster-adapter.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 dependencies | |
| run: | | |
| npm run compile \ | |
| --workspace=socket.io-adapter | |
| - name: Compile package | |
| run: npm run compile --workspace=@socket.io/cluster-adapter | |
| - name: Compile dev dependencies | |
| run: | | |
| npm run compile \ | |
| --workspace=engine.io-parser \ | |
| --workspace=engine.io-client \ | |
| --workspace=engine.io \ | |
| --workspace=socket.io-parser \ | |
| --workspace=socket.io-client \ | |
| --workspace=socket.io | |
| - name: Run tests | |
| run: npm test --workspace=@socket.io/cluster-adapter |