Skip to content

Commit 8e852ca

Browse 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

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/test-e2e.yml

+7-7
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

+4
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)