Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8e852ca

Browse filesBrowse files
authored
ci: increase number of shards when running Next.js repo e2e tests (#2748)
* ci: increase number of shards when running Next.js repo e2e tests * test: set NEXT_PRIVATE_TEST_MODE when running Next.js repo tests * test: re-enable running tests against canary for upcoming changes visibility
1 parent 5a2d6fa commit 8e852ca
Copy full SHA for 8e852ca

File tree

Expand file treeCollapse file tree

2 files changed

+11
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+11
-7
lines changed

‎.github/workflows/test-e2e.yml

Copy file name to clipboardExpand all lines: .github/workflows/test-e2e.yml
+7-7Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ jobs:
5656
run: |
5757
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
5858
VERSION_SELECTORS=[${{ github.event.inputs.versions }}]
59-
echo "group=[1, 2, 3, 4]" >> $GITHUB_OUTPUT
60-
echo "total=4" >> $GITHUB_OUTPUT
59+
echo "group=[1, 2, 3, 4, 5, 6]" >> $GITHUB_OUTPUT
60+
echo "total=6" >> $GITHUB_OUTPUT
6161
elif [ "${{ github.event_name }}" == "pull_request" ]; then
6262
VERSION_SELECTORS=[\"latest\"]
63-
echo "group=[1, 2, 3, 4]" >> $GITHUB_OUTPUT
64-
echo "total=4" >> $GITHUB_OUTPUT
63+
echo "group=[1, 2, 3, 4, 5, 6]" >> $GITHUB_OUTPUT
64+
echo "total=6" >> $GITHUB_OUTPUT
6565
else
66-
VERSION_SELECTORS=[\"latest\",\"canary\",\"14.2.15\",\"13.5.1\"]
67-
echo "group=[1, 2, 3, 4]" >> $GITHUB_OUTPUT
68-
echo "total=4" >> $GITHUB_OUTPUT
66+
VERSION_SELECTORS=[\"latest\",\"canary\"]
67+
echo "group=[1, 2, 3, 4, 5, 6]" >> $GITHUB_OUTPUT
68+
echo "total=6" >> $GITHUB_OUTPUT
6969
fi
7070
7171
VERSION_SPEC="["

‎tests/netlify-deploy.ts

Copy file name to clipboardExpand all lines: tests/netlify-deploy.ts
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export class NextDeployInstance extends NextInstance {
9090
command = "npm run build"
9191
publish = ".next"
9292
93+
[build.environment]
94+
# this allows to use "CanaryOnly" features with next@latest
95+
NEXT_PRIVATE_TEST_MODE = "e2e"
96+
9397
[[plugins]]
9498
package = "${runtimePackageName}"
9599
`

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.