Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update concurrency for dev and start E2E tests #37719

Merged
merged 2 commits into from
Jun 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ jobs:
fail-fast: false
matrix:
node: [16, 18]
group: [1, 2]
steps:
- name: Setup node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -378,7 +379,7 @@ jobs:
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

- run: NEXT_TEST_MODE=dev node run-tests.js --type e2e
- run: NEXT_TEST_MODE=dev node run-tests.js --type e2e --timings -g ${{ matrix.group }}/2
name: Run test/e2e (dev)
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

Expand All @@ -400,6 +401,10 @@ jobs:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
NEXT_TEST_REACT_VERSION: ^17
strategy:
fail-fast: false
matrix:
group: [1, 2]
steps:
- name: Setup node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -430,7 +435,7 @@ jobs:
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

- run: NEXT_TEST_MODE=dev node run-tests.js --type e2e
- run: NEXT_TEST_MODE=dev node run-tests.js --type e2e --timings -g ${{ matrix.group }}/2
name: Run test/e2e (dev)
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

Expand Down Expand Up @@ -542,6 +547,7 @@ jobs:
fail-fast: false
matrix:
node: [16, 18]
group: [1, 2]
steps:
- name: Setup node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -572,7 +578,7 @@ jobs:
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

- run: NEXT_TEST_MODE=start node run-tests.js --type e2e
- run: NEXT_TEST_MODE=start node run-tests.js --type e2e --timings -g ${{ matrix.group }}/2
name: Run test/e2e (production)
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

Expand All @@ -587,7 +593,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [16, 18]
group: [1, 2]
steps:
- name: Setup node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -618,7 +624,7 @@ jobs:
- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

- run: NEXT_TEST_MODE=start node run-tests.js --type e2e
- run: NEXT_TEST_MODE=start node run-tests.js --type e2e --timings -g ${{ matrix.group }}/2
name: Run test/e2e (production)
if: ${{needs.build.outputs.docsChange != 'docs only change'}}

Expand Down