Skip to content

Commit 354e189

Browse files
authored
test: increase test shards up to 5 (#446)
1 parent 8e6f137 commit 354e189

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/run-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
fail-fast: false
4848
matrix:
4949
version: ${{ fromJson(needs.setup.outputs.matrix) }}
50-
shard: [1, 2, 3, 4]
50+
shard: [1, 2, 3, 4, 5]
5151

5252
steps:
5353
- uses: actions/checkout@v4
@@ -95,7 +95,7 @@ jobs:
9595
echo "version=$RESOLVED_VERSION" >> $GITHUB_OUTPUT
9696
echo "Resolved Next.js version for 'next@${{ matrix.version }}' is '$RESOLVED_VERSION'"
9797
- name: Run Playwright tests
98-
run: npm run test:ci:e2e -- --shard=${{ matrix.shard }}/4
98+
run: npm run test:ci:e2e -- --shard=${{ matrix.shard }}/5
9999
env:
100100
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
101101
NEXT_VERSION: ${{ matrix.version }}
@@ -239,9 +239,9 @@ jobs:
239239

240240
- name: Merge reports
241241
run: |
242-
npx playwright merge-reports --reporter html ./all-blob-reports
242+
npx playwright merge-reports --reporter html ./all-blob-reports
243243
npx playwright merge-reports --reporter json ./all-blob-reports > merged_reports.json
244-
244+
245245
- name: Notify Slack
246246
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.head_ref == 'main'
247247
run: npx playwright-slack-report -j merged_reports.json -c tests/playwright-slack-conf.json

.github/workflows/test-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
path: ${{ env.next-path }}/test/test-junit-report/*.xml
208208
publish-test-results:
209209
name: 'E2E Test Summary (${{matrix.version}})'
210-
needs:
210+
needs:
211211
- e2e
212212
- setup
213213
runs-on: ubuntu-latest
@@ -257,7 +257,7 @@ jobs:
257257
payload: ${{ steps.publish-test-results.outputs.slackEvent }}
258258

259259
- name: Publish test site
260-
if: (success() || failure()) && matrix.version == 'latest' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
260+
if: (success() || failure()) && matrix.version == 'latest' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')
261261
run: |
262262
deno run -A tools/deno/junit2html.ts artifacts ${{needs.e2e.outputs.tag}} > report/index.html
263263
npx --yes netlify-cli@latest deploy --prod --cwd report

0 commit comments

Comments
 (0)