From e21eb2505c3a308cc7e7e0d31190fbfe6cd26ce5 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 3 Nov 2022 17:58:50 +0000 Subject: [PATCH] Optimise Jest run in CI (#23693) --- .github/workflows/tests.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index ea3bbf8b82..481c453f73 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -25,8 +25,12 @@ jobs: - name: Install Dependencies run: "./scripts/layered.sh" + - name: Get number of CPU cores + id: cpu-cores + uses: SimenB/github-actions-cpu-cores@v1 + - name: Run tests with coverage - run: "yarn coverage --ci" + run: "yarn coverage --ci --reporters github-actions --max-workers ${{ steps.cpu-cores.outputs.count }}" - name: Upload Artifact uses: actions/upload-artifact@v2