Skip to content

Commit 0fee8e7

Browse files
committed
Debug CI
1 parent 1ace384 commit 0fee8e7

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,19 @@ jobs:
2626
runs-on: ubuntu-latest
2727
strategy:
2828
fail-fast: false
29+
# Integration tests run on a single Node version with one worker to mimic local (avoid 503s and shared-state flakes).
2930
matrix:
30-
node-version: [20, 22, 24]
31-
test: ["unit", "integration:v5", "integration:v4"]
31+
include:
32+
- node-version: 20
33+
test: unit
34+
- node-version: 22
35+
test: unit
36+
- node-version: 24
37+
test: unit
38+
- node-version: 22
39+
test: integration:v5
40+
- node-version: 22
41+
test: integration:v4
3242
name: Node.js v${{ matrix.node-version }} - ${{ matrix.test }} tests
3343
steps:
3444
- name: Checkout
@@ -41,12 +51,13 @@ jobs:
4151
run: npm ci
4252
- name: Run ${{ matrix.test }} Tests and Add Annotations
4353
id: tests
44-
run: npm run test:${{ matrix.test }} -- --ci --coverage --reporters=default --reporters=github-actions --reporters=jest-junit ${{ (matrix.test == 'integration:v4' || matrix.test == 'integration:v5') && '--maxWorkers=4' || '' }}
54+
run: npm run test:${{ matrix.test }} -- --ci --coverage --reporters=default --reporters=github-actions --reporters=jest-junit ${{ (matrix.test == 'integration:v4' || matrix.test == 'integration:v5') && '--maxWorkers=1' || '' }}
4555
env:
4656
ORKES_BACKEND_VERSION: ${{ matrix.test == 'integration:v4' && '4' || (matrix.test == 'integration:v5' && '5' || '') }}
4757
CONDUCTOR_SERVER_URL: ${{ matrix.test == 'integration:v4' && vars.SERVER_URL_V4 || vars.SERVER_URL }}
4858
CONDUCTOR_AUTH_KEY: ${{ matrix.test == 'integration:v4' && secrets.AUTH_KEY_V4 || secrets.AUTH_KEY }}
4959
CONDUCTOR_AUTH_SECRET: ${{ matrix.test == 'integration:v4' && secrets.AUTH_SECRET_V4 || secrets.AUTH_SECRET }}
60+
CONDUCTOR_SDK_INITIAL_TOKEN_STAGGER_MS: ${{ (matrix.test == 'integration:v4' || matrix.test == 'integration:v5') && '2000' || '' }}
5061
JEST_JUNIT_OUTPUT_NAME: ${{ matrix.test }}-test-results.xml
5162
- name: Publish ${{ matrix.test }} Test Results
5263
uses: dorny/test-reporter@v2

0 commit comments

Comments
 (0)