Use in-memory tracking for per-handler maxParallelTasks and forward parallel option
#83
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: Test | |
| on: | |
| pull_request: | |
| push: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| node: [22] | |
| os: [ubuntu-22.04] | |
| mongo: [8.2.0] | |
| name: Node ${{ matrix.node }} MongoDB ${{ matrix.mongo }} | |
| steps: | |
| - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3 | |
| - name: Setup node | |
| uses: actions/setup-node@5b52f097d36d4b0b2f94ed6de710023fbb8b2236 # v3.1.0 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - run: npm install | |
| - name: Setup | |
| run: | | |
| wget -q https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu2204-${{ matrix.mongo }}.tgz | |
| tar xf mongodb-linux-x86_64-ubuntu2204-${{ matrix.mongo }}.tgz | |
| mkdir -p ./data/db/27017 ./data/db/27000 | |
| ./mongodb-linux-x86_64-ubuntu2204-${{ matrix.mongo }}/bin/mongod --setParameter ttlMonitorSleepSecs=1 --fork --dbpath ./data/db/27017 --syslog --port 27017 | |
| sleep 2 | |
| echo `pwd`/mongodb-linux-x86_64-ubuntu2204-${{ matrix.mongo }}/bin >> $GITHUB_PATH | |
| - run: npm test |