@@ -351,8 +351,39 @@ jobs:
351351 ${{ github.workspace }}/packages/replay/build/bundles/**
352352 ${{ github.workspace }}/packages/**/*.tgz
353353
354- job_unit_test :
355- name : Test (Node ${{ matrix.node }})
354+ job_browser_unit_tests :
355+ name : Browser Unit Tests
356+ needs : [job_get_metadata, job_build]
357+ timeout-minutes : 10
358+ runs-on : ubuntu-latest
359+ steps :
360+ - name : Check out current commit (${{ needs.job_get_metadata.outputs.commit_label }})
361+ uses : actions/checkout@v3
362+ with :
363+ ref : ${{ env.HEAD_COMMIT }}
364+ - name : Set up Node
365+ uses : actions/setup-node@v3
366+ with :
367+ node-version : ${{ env.DEFAULT_NODE_VERSION }}
368+ - name : Check dependency cache
369+ uses : actions/cache@v3
370+ with :
371+ path : ${{ env.CACHED_DEPENDENCY_PATHS }}
372+ key : ${{ needs.job_build.outputs.dependency_cache_key }}
373+ - name : Check build cache
374+ uses : actions/cache@v3
375+ with :
376+ path : ${{ env.CACHED_BUILD_PATHS }}
377+ key : ${{ env.BUILD_CACHE_KEY }}
378+ - name : Run tests
379+ env :
380+ NODE_VERSION : 16
381+ run : yarn test-ci-browser
382+ - name : Compute test coverage
383+ uses : codecov/codecov-action@v3
384+
385+ job_node_unit_tests :
386+ name : Node (${{ matrix.node }}) Unit Tests
356387 needs : [job_get_metadata, job_build]
357388 timeout-minutes : 30
358389 runs-on : ubuntu-20.04
@@ -384,7 +415,7 @@ jobs:
384415 NODE_VERSION : ${{ matrix.node }}
385416 run : |
386417 [[ $NODE_VERSION == 8 ]] && yarn add --dev --ignore-engines --ignore-scripts --ignore-workspace-root-check [email protected] 387- yarn test-ci
418+ yarn test-ci-node
388419 - name : Compute test coverage
389420 uses : codecov/codecov-action@v3
390421
@@ -707,7 +738,8 @@ jobs:
707738 [
708739 job_build,
709740 job_browser_build_tests,
710- job_unit_test,
741+ job_browser_unit_test,
742+ job_node_unit_test,
711743 job_nextjs_integration_test,
712744 job_node_integration_tests,
713745 job_browser_playwright_tests,
0 commit comments