Use in-process event emitter instead of Redis pub/sub #1813
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 | |
| on: | |
| pull_request: | |
| branches: [default] | |
| push: | |
| branches: [default] | |
| jobs: | |
| lint: | |
| name: Code style | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check code style | |
| run: npm run lint | |
| types: | |
| name: Types | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: lts/* | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Check types | |
| run: npm run types | |
| test: | |
| name: Tests | |
| strategy: | |
| matrix: | |
| node-version: ['20.x', '22.x', '24.x'] | |
| runs-on: ubuntu-latest | |
| services: | |
| redis: | |
| image: redis:6 | |
| ports: ['6379:6379'] | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v6 | |
| - name: Install Node.js ${{matrix.node-version}} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{matrix.node-version}} | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Run tests | |
| run: npm run tests-only | |
| env: | |
| REDIS_URL: '127.0.0.1:6379' | |
| MONGODB_HOST: '127.0.0.1:27017' | |
| - name: Submit coverage | |
| if: matrix.node-version == '22.x' | |
| uses: coverallsapp/[email protected] | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} |