Skip to content

Improve coverall report time execution #37128

Improve coverall report time execution

Improve coverall report time execution #37128

Workflow file for this run

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, edited]
name: Reporter
jobs:
test:
name: Run tests in parallel
runs-on: Runner_16cores_Deriv-app
strategy:
matrix:
shard: [1,2,3,4,5,6,7,8,9,10]
fail-fast: true
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Setup Node
uses: './.github/actions/setup_node'
- name: Install dependencies
uses: "./.github/actions/npm_install_from_cache"
- name: Build components package
working-directory: packages/components
run: npm run build
- name: Test
run: JEST_MAX_WORKERS=95% SHARD_INDEX=${{ matrix.shard }} npm run test:shard -- --collectCoverage
- name: Coveralls Parallel
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949
with:
allow-empty: true
flag-name: ${{ matrix.shard}}
parallel: true
finish:
name: Coveralls Finished
needs: [test]
if: ${{ always() }}
runs-on: Runner_16cores_Deriv-app
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949
with:
parallel-finished: true