fix: don’t add default listener when listeners >0 #137
This file contains 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: Test Matrix | |
on: | |
push: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
lint-and-test: | |
name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }} | |
timeout-minutes: 30 | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
node-version: [18, 20] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: Yarn build | |
run: yarn build | |
- name: Run Lint | |
if: ${{ matrix.os == 'ubuntu-latest' && matrix.node-version == 18 }} | |
run: NODE_OPTIONS=--max-old-space-size=4096 yarn lint | |
- name: Run tests | |
run: yarn test |