message: chore(ci): run tests with `--detectLeaks` in separate job
diff: @@ -112,6 +112,25 @@ jobs:
  with:
  os: windows-latest
  + test-leak:
  + name: Node LTS on Ubuntu with leak detection
  + runs-on: ubuntu-latest
  + needs: prepare-yarn-cache-ubuntu
  +
  + steps:
  + - uses: actions/checkout@v3
  + - name: Use Node.js LTS
  + uses: actions/setup-node@v3
  + with:
  + node-version: lts/*
  + cache: yarn
  + - name: install
  + run: yarn --immutable
  + - name: build
  + run: yarn build:js
  + - name: run tests with leak detection
  + run: yarn test-leak
  +
  test-coverage:
  name: Node LTS on Ubuntu with coverage (${{ matrix.shard }})
  strategy:
  @@ -136,9 +155,7 @@ jobs:
  id: cpu-cores
  uses: SimenB/github-actions-cpu-cores@v1
  - name: run tests with coverage
  - run: |
  - yarn jest-coverage --color --config jest.config.ci.mjs --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }}
  - yarn test-leak
  + run: yarn jest-coverage --color --config jest.config.ci.mjs --max-workers ${{ steps.cpu-cores.outputs.count }} --shard=${{ matrix.shard }}
  - name: map coverage
  run: node ./scripts/mapCoverage.mjs
  if: always()
  