test(): test dynamic max workers and improve CI (#13516)

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* test(): test dynamic max workers

* Clarify test description and improve CI
This commit is contained in:
Adrien de Peretti
2025-09-16 11:11:03 +02:00
committed by GitHub
parent b6d96a1b03
commit 25634b0382
47 changed files with 131 additions and 113 deletions

View File

@@ -22,7 +22,7 @@ jobs:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
@@ -30,7 +30,6 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Assert changed
run: ./scripts/assert-changed-files-actions.sh "packages"
@@ -50,12 +49,13 @@ jobs:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 100
- name: Assert changed
run: ./scripts/assert-changed-files-actions.sh "packages"
- name: Get number of CPU cores
id: cpu-cores
uses: SimenB/github-actions-cpu-cores@v2
- name: Install dependencies
uses: ./.github/actions/cache-deps
@@ -63,7 +63,7 @@ jobs:
extension: pipeline
- name: Run unit tests
run: yarn test:chunk
run: yarn test:chunk -- --maxWorkers=${{ steps.cpu-cores.outputs.count }}
integration-tests-packages-matrix:
needs: setup
@@ -102,9 +102,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 100
- name: Get number of CPU cores
id: cpu-cores
uses: SimenB/github-actions-cpu-cores@v2
- name: Install dependencies
uses: ./.github/actions/cache-deps
@@ -112,7 +116,7 @@ jobs:
extension: pipeline
- name: Run integration tests
run: yarn test:integration:packages:${{ matrix.group }}
run: yarn test:integration:packages:${{ matrix.group }} -- --maxWorkers=${{ steps.cpu-cores.outputs.count }}
env:
DB_PASSWORD: postgres
DB_USERNAME: postgres
@@ -169,9 +173,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 100
- name: Get number of CPU cores
id: cpu-cores
uses: SimenB/github-actions-cpu-cores@v2
- name: Install dependencies
uses: ./.github/actions/cache-deps
@@ -179,7 +187,7 @@ jobs:
extension: pipeline
- name: Run HTTP integration tests
run: yarn test:integration:http -- --shard=${{ matrix.shard_index }}/3
run: yarn test:integration:http -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
env:
DB_USERNAME: postgres
DB_PASSWORD: postgres
@@ -236,9 +244,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-depth: 100
- name: Get number of CPU cores
id: cpu-cores
uses: SimenB/github-actions-cpu-cores@v2
- name: Install dependencies
uses: ./.github/actions/cache-deps
@@ -246,7 +258,7 @@ jobs:
extension: pipeline
- name: Run Modules integration tests
run: yarn test:integration:modules -- --shard=${{ matrix.shard_index }}/3
run: yarn test:integration:modules -- --shard=${{ matrix.shard_index }}/3 --maxWorkers=${{ steps.cpu-cores.outputs.count }}
env:
DB_USERNAME: postgres
DB_PASSWORD: postgres